Warning fix
authorAlan Modra <amodra@gmail.com>
Wed, 17 Jan 2018 10:54:32 +0000 (21:24 +1030)
committerAlan Modra <amodra@gmail.com>
Wed, 17 Jan 2018 10:55:15 +0000 (21:25 +1030)
* elf64-ppc.c (ppc64_elf_build_stubs): Silence gcc warning.

bfd/ChangeLog
bfd/elf64-ppc.c

index cec6b16707b0a75d7dd5b3b15896fa7192ba4812..e14ab76ee3f46808b142bb6f6426a0c3989b91f5 100644 (file)
@@ -1,3 +1,7 @@
+2018-01-17  Alan Modra  <amodra@gmail.com>
+
+       * elf64-ppc.c (ppc64_elf_build_stubs): Silence gcc warning.
+
 2018-01-17  Alan Modra  <amodra@gmail.com>
 
        * elf32-ppc.c (GLINK_ENTRY_SIZE): Handle speculation barrier.
index 1b4404cecb492343db0ffb9b937c73bcc7319f83..65cf7feb3914a02d65abefe8dbc3b4640222c418 100644 (file)
@@ -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;