From cef3348cbd4c55e9d1a9494677588f36673c8429 Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Wed, 11 Apr 2007 12:02:32 +0000 Subject: [PATCH] * elf-vxworks.c (elf_vxworks_emit_relocs): Remap weakdef PLT slot relocs too. --- bfd/ChangeLog | 5 +++++ bfd/elf-vxworks.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) 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 + + * elf-vxworks.c (elf_vxworks_emit_relocs): Remap weakdef PLT slot + relocs too. + 2007-04-10 Richard Henderson * 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 -- 2.11.0