Warning fix

* elf64-ppc.c (ppc64_elf_build_stubs): Silence gcc warning.
This commit is contained in:
Alan Modra 2018-01-17 21:24:32 +10:30
parent 1be5d8d3bb
commit c75bc4f76f
2 changed files with 5 additions and 1 deletions

View 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.

View 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;