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]
Other format: [Raw text]

Re: ELF/sparc64 is broken


On Thu, Apr 15, 2004 at 03:23:32PM +0930, Alan Modra wrote:
> Hmm, dynobj == NULL, perhaps?

Yep.

bfd/ChangeLog
	* elf64-sparc.c (sparc64_elf_check_relocs): Fix thinko last change.

Index: bfd/elf64-sparc.c
===================================================================
RCS file: /cvs/src/src/bfd/elf64-sparc.c,v
retrieving revision 1.87
diff -u -p -r1.87 elf64-sparc.c
--- bfd/elf64-sparc.c	14 Apr 2004 09:50:07 -0000	1.87
+++ bfd/elf64-sparc.c	15 Apr 2004 06:02:40 -0000
@@ -2027,8 +2027,9 @@ sparc64_elf_relocate_section (output_bfd
   else
     got_base = elf_hash_table (info)->hgot->root.u.def.value;
 
-  sgot = sreloc = NULL;
-  splt = bfd_get_section_by_name (dynobj, ".plt");
+  sgot = splt = sreloc = NULL;
+  if (dynobj != NULL)
+    splt = bfd_get_section_by_name (dynobj, ".plt");
 
   rel = relocs;
   relend = relocs + NUM_SHDR_ENTRIES (& elf_section_data (input_section)->rel_hdr);


-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


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