This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
PATCH: Fix typo in elf32-mips.c
- To: binutils at sourceware dot cygnus dot com
- Subject: PATCH: Fix typo in elf32-mips.c
- From: "H . J . Lu" <hjl at lucon dot org>
- Date: Thu, 30 Aug 2001 08:26:16 -0700
I checked in the following patch as an obvious fix.
H.J.
-----
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.
--- elf32-mips.c.dynamic Thu Aug 30 08:00:39 2001
+++ elf32-mips.c Thu Aug 30 08:06:21 2001
@@ -6334,7 +6334,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)