diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2007-04-11 12:02:32 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@codesourcery.com> | 2007-04-11 12:02:32 +0000 |
commit | afed677ebad48e0046e93c1e8c374f4a48e13672 (patch) | |
tree | 8482c7ee63f16033a8a1d158cf54ccf40727beb8 | |
parent | 3581df0206daf52f570ad020ddc2e117ad4f17f5 (diff) | |
download | binutils-redhat-afed677ebad48e0046e93c1e8c374f4a48e13672.tar.gz |
* elf-vxworks.c (elf_vxworks_emit_relocs): Remap weakdef PLT slot
relocs too.
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/elf-vxworks.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index b2eff80b52..45269778a7 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2007-04-11 Nathan Sidwell <nathan@codesourcery.com> + + * elf-vxworks.c (elf_vxworks_emit_relocs): Remap weakdef PLT slot + relocs too. + 2007-04-10 Richard Henderson <rth@redhat.com> * elf64-alpha.c (struct alpha_elf_link_hash_table): Add relax_trip. diff --git a/bfd/elf-vxworks.c b/bfd/elf-vxworks.c index 5b673f2a8e..27660eb467 100644 --- a/bfd/elf-vxworks.c +++ b/bfd/elf-vxworks.c @@ -170,7 +170,8 @@ elf_vxworks_emit_relocs (bfd *output_bfd, && *rel_hash && (*rel_hash)->def_dynamic && !(*rel_hash)->def_regular - && (*rel_hash)->root.type == bfd_link_hash_defined + && ((*rel_hash)->root.type == bfd_link_hash_defined + || (*rel_hash)->root.type == bfd_link_hash_weakdef) && (*rel_hash)->root.u.def.section->output_section != NULL) { /* This is a relocation from an executable or shared library |