This is the mail archive of the binutils@sourceware.org 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]

[RFA] Fix binutils/14662


Hi.

This patch fixes binutils/14662.
http://sourceware.org/bugzilla/show_bug.cgi?id=14662

It's possible there's more to it than this, but this patch
works in my sandbox, and I can't think of what else is needed.

Ok to check in?

2012-10-03  Doug Evans  <dje@google.com>

	PR binutils/14662
	* elf.c (_bfd_elf_make_section_from_shdr): Treat .gdb_index as
	SEC_DEBUGGING.

Index: elf.c
===================================================================
RCS file: /cvs/src/src/bfd/elf.c,v
retrieving revision 1.570
diff -u -p -r1.570 elf.c
--- elf.c	4 Sep 2012 12:35:34 -0000	1.570
+++ elf.c	3 Oct 2012 19:38:07 -0000
@@ -920,6 +920,9 @@ _bfd_elf_make_section_from_shdr (bfd *ab
 	      && strncmp (&name [1], debug_sections [i].name,
 			  debug_sections [i].len) == 0)
 	    flags |= SEC_DEBUGGING;
+	  /* Treat .gdb_index as a debugging section.  */
+	  if (strcmp (name, ".gdb_index") == 0)
+	    flags |= SEC_DEBUGGING;
 	}
     }
 


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