diff options
author | Alan Modra <amodra@gmail.com> | 2018-01-17 21:24:32 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2018-01-17 21:25:15 +1030 |
commit | c75bc4f76fe456c57ef1e446db5378182692c429 (patch) | |
tree | c1dc5b3604a40de3f8a2f9d6a7b6fe0fae7fca73 | |
parent | 1be5d8d3bbec4c9a112114993ac5c85b2b26c4c4 (diff) | |
download | gdb-c75bc4f76fe456c57ef1e446db5378182692c429.zip gdb-c75bc4f76fe456c57ef1e446db5378182692c429.tar.gz gdb-c75bc4f76fe456c57ef1e446db5378182692c429.tar.bz2 |
Warning fix
* elf64-ppc.c (ppc64_elf_build_stubs): Silence gcc warning.
-rw-r--r-- | bfd/ChangeLog | 4 | ||||
-rw-r--r-- | bfd/elf64-ppc.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index cec6b16..e14ab76 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,9 @@ 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. (CRSETEQ, BEQCTRM): Define. (is_nonpic_glink_stub): Don't check bctr. diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c index 1b4404c..65cf7fe 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; |