From c75bc4f76fe456c57ef1e446db5378182692c429 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Wed, 17 Jan 2018 21:24:32 +1030 Subject: [PATCH] Warning fix * elf64-ppc.c (ppc64_elf_build_stubs): Silence gcc warning. --- bfd/ChangeLog | 4 ++++ bfd/elf64-ppc.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index cec6b16707..e14ab76ee3 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2018-01-17 Alan Modra + + * elf64-ppc.c (ppc64_elf_build_stubs): Silence gcc warning. + 2018-01-17 Alan Modra * elf32-ppc.c (GLINK_ENTRY_SIZE): Handle speculation barrier. diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c index 1b4404cecb..65cf7feb39 100644 --- a/bfd/elf64-ppc.c +++ b/bfd/elf64-ppc.c @@ -13211,7 +13211,7 @@ ppc64_elf_build_stubs (struct bfd_link_info *info, p += 4; } p = output_bctr (htab, htab->glink->owner, p); - BFD_ASSERT (p - htab->glink->contents == GLINK_PLTRESOLVE_SIZE (htab)); + BFD_ASSERT (p == htab->glink->contents + GLINK_PLTRESOLVE_SIZE (htab)); /* Build the .glink lazy link call stubs. */ indx = 0; -- 2.34.1