From e8e1dd4b34243c7e33d99cf98c03ce97b8d23104 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Thu, 30 Aug 2001 15:24:18 +0000 Subject: [PATCH] 2001-08-30 H.J. Lu * 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. --- bfd/ChangeLog | 6 ++++++ bfd/elf32-mips.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index dac33c962f..9bde0aa764 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2001-08-30 H.J. Lu + + * 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. + 2001-08-29 Joel Sherrill * config.bfd (i[3456]86-*-rtems*, m68*-*-rtems*): Change diff --git a/bfd/elf32-mips.c b/bfd/elf32-mips.c index 1f6ecef2d6..4d224df5d3 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) -- 2.11.0