* elf-vxworks.c (elf_vxworks_emit_relocs): Remap weakdef PLT slot

relocs too.
This commit is contained in:
Nathan Sidwell 2007-04-11 12:02:32 +00:00
parent 8a3dae3ed0
commit 8776bb8aa5
2 changed files with 7 additions and 1 deletions

View File

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

View File

@ -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