diff options
author | Maciej W. Rozycki <macro@linux-mips.org> | 2012-08-28 20:17:56 +0000 |
---|---|---|
committer | Maciej W. Rozycki <macro@linux-mips.org> | 2012-08-28 20:17:56 +0000 |
commit | 14acf4dcaee3b0cee94b481b220d38fc4ff6ae5c (patch) | |
tree | c7cf539df9d8e22192c8c487872ca8681eb1f990 /bfd/elf32-ppc.c | |
parent | aed81c4e9cc4f24eba4da3564f0e99bd667188c7 (diff) | |
download | gdb-14acf4dcaee3b0cee94b481b220d38fc4ff6ae5c.zip gdb-14acf4dcaee3b0cee94b481b220d38fc4ff6ae5c.tar.gz gdb-14acf4dcaee3b0cee94b481b220d38fc4ff6ae5c.tar.bz2 |
* elf32-ppc.c (ppc_elf_relocate_section): Assert that dynindx is
not minus one.
* elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
Diffstat (limited to 'bfd/elf32-ppc.c')
-rw-r--r-- | bfd/elf32-ppc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bfd/elf32-ppc.c b/bfd/elf32-ppc.c index 779ca6d..3d55ac4 100644 --- a/bfd/elf32-ppc.c +++ b/bfd/elf32-ppc.c @@ -7826,6 +7826,7 @@ ppc_elf_relocate_section (bfd *output_bfd, ; else { + BFD_ASSERT (h->dynindx != -1); indx = h->dynindx; unresolved_reloc = FALSE; } @@ -8176,6 +8177,7 @@ ppc_elf_relocate_section (bfd *output_bfd, || h->root.type == bfd_link_hash_undefweak)) || !SYMBOL_REFERENCES_LOCAL (info, h)) { + BFD_ASSERT (h->dynindx != -1); unresolved_reloc = FALSE; outrel.r_info = ELF32_R_INFO (h->dynindx, r_type); outrel.r_addend = rel->r_addend; |