diff options
author | Julian Brown <julian@codesourcery.com> | 2009-07-10 14:57:00 +0000 |
---|---|---|
committer | Julian Brown <julian@codesourcery.com> | 2009-07-10 14:57:00 +0000 |
commit | 33c6a8fcd6414ad15f98e7c826386a56302f1bb6 (patch) | |
tree | 55da4207cee5a58b84f8515efc6947407551d833 /bfd/elf32-arm.c | |
parent | 1bffd25b5018ec75cf2f87a8001573d180ac3c44 (diff) | |
download | gdb-33c6a8fcd6414ad15f98e7c826386a56302f1bb6.zip gdb-33c6a8fcd6414ad15f98e7c826386a56302f1bb6.tar.gz gdb-33c6a8fcd6414ad15f98e7c826386a56302f1bb6.tar.bz2 |
* elf32-arm.c (arm_build_one_stub): Use the hash entry of the
symbol a stub entry is derived from, not the entry for the stub
itself, in call to elf32_arm_final_link_relocate.
Diffstat (limited to 'bfd/elf32-arm.c')
-rw-r--r-- | bfd/elf32-arm.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bfd/elf32-arm.c b/bfd/elf32-arm.c index 2d53304..bb45587 100644 --- a/bfd/elf32-arm.c +++ b/bfd/elf32-arm.c @@ -3549,6 +3549,9 @@ arm_build_one_stub (struct bfd_hash_entry *gen_entry, branch. */ points_to = sym_value; + /* There may be unintended consequences if this is not true. */ + BFD_ASSERT (stub_entry->h == NULL); + /* Note: _bfd_final_link_relocate doesn't handle these relocations properly. We should probably use this function unconditionally, rather than only for certain relocations listed in the enclosing @@ -3557,7 +3560,7 @@ arm_build_one_stub (struct bfd_hash_entry *gen_entry, (template[stub_reloc_idx[i]].r_type), stub_bfd, info->output_bfd, stub_sec, stub_sec->contents, &rel, points_to, info, stub_entry->target_section, "", sym_flags, - (struct elf_link_hash_entry *) stub_entry, &unresolved_reloc, + (struct elf_link_hash_entry *) stub_entry->h, &unresolved_reloc, &error_message); } else |