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]

[kettenis_sparc-20030918-branch] Small elf.c fix


FYI,

Just in case folks are wondering what I'm doing: I've checked in the
attached patch on the branch mentioned in the subject which I'm using
to get GDB working on SPARC again.  The same fix has already been made
on mainline, but I'd rather avoid having to do a merge.

Mark


Index: ChangeLog
from  Mark Kettenis  <kettenis@gnu.org>

	* elf.c (elfcore_grok_note): Allow multiple .auxv sections.

Index: elf.c
===================================================================
RCS file: /cvs/src/src/bfd/elf.c,v
retrieving revision 1.198
diff -u -p -r1.198 elf.c
--- elf.c 7 Aug 2003 08:38:07 -0000 1.198
+++ elf.c 12 Dec 2003 23:17:48 -0000
@@ -6810,7 +6810,7 @@ elfcore_grok_note (bfd *abfd, Elf_Intern
 
     case NT_AUXV:
       {
-	asection *sect = bfd_make_section (abfd, ".auxv");
+	asection *sect = bfd_make_section_anyway (abfd, ".auxv");
 
 	if (sect == NULL)
 	  return FALSE;


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