aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-mips.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2001-08-30 15:24:18 +0000
committerH.J. Lu <hjl.tools@gmail.com>2001-08-30 15:24:18 +0000
commit8eb59a907a65133ccaee3721060fa356bf722fb9 (patch)
treeb9bf333c8c68918fc53fa18c9ca4a98257d63d15 /bfd/elf32-mips.c
parent8df8c6197ab22e0b3558d013efb32000b6e31f81 (diff)
downloadgdb-8eb59a907a65133ccaee3721060fa356bf722fb9.zip
gdb-8eb59a907a65133ccaee3721060fa356bf722fb9.tar.gz
gdb-8eb59a907a65133ccaee3721060fa356bf722fb9.tar.bz2
2001-08-30 H.J. Lu <hjl@gnu.org>
* elf32-mips.c (mips_elf_calculate_relocation): Don't create dynamic relocation for undefined weak symbols when creating executables. Check h->root.root.type, instead of h->root.type.
Diffstat (limited to 'bfd/elf32-mips.c')
-rw-r--r--bfd/elf32-mips.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/elf32-mips.c b/bfd/elf32-mips.c
index 1f6ecef..4d224df 100644
--- a/bfd/elf32-mips.c
+++ b/bfd/elf32-mips.c
@@ -6332,7 +6332,8 @@ mips_elf_calculate_relocation (abfd,
if ((info->shared
|| (elf_hash_table (info)->dynamic_sections_created
&& h != NULL
- && (h->root.type == bfd_link_hash_defweak
+ && h->root.root.type != bfd_link_hash_undefweak
+ && (h->root.root.type == bfd_link_hash_defweak
|| (h->root.elf_link_hash_flags
& ELF_LINK_HASH_DEF_REGULAR) == 0)))
&& (input_section->flags & SEC_ALLOC) != 0)