From afed677ebad48e0046e93c1e8c374f4a48e13672 Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Wed, 11 Apr 2007 12:02:32 +0000 Subject: * elf-vxworks.c (elf_vxworks_emit_relocs): Remap weakdef PLT slot relocs too. --- bfd/elf-vxworks.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bfd/elf-vxworks.c') 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 -- cgit v1.2.1