This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

PATCH: Fix typo in elf32-mips.c


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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]