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]

bfd change to grok PT_GNU_EH_FRAME for sectionless ELF


This change should be self-explanatory.  It will become relevant soon,
since Linux core files will probably start having a PT_GNU_EH_FRAME.  This
change just makes section name "eh_frame_hdr0" instead of "segment0", which
alone is just cosmetic.  But I will probably have gdb changes later on that
rely on looking up this name.

Ok to commit?


Thanks,
Roland


2003-04-17  Roland McGrath  <roland at redhat dot com>

	* elf.c (bfd_section_from_phdr): Map PT_GNU_EH_FRAME to "eh_frame_hdr".

--- elf.c.~1.181.~	Fri Apr  4 14:29:05 2003
+++ elf.c	Wed Apr 16 17:55:57 2003
@@ -2292,6 +2292,10 @@ bfd_section_from_phdr (abfd, hdr, index)
     case PT_PHDR:
       return _bfd_elf_make_section_from_phdr (abfd, hdr, index, "phdr");
 
+    case PT_GNU_EH_FRAME:
+      return _bfd_elf_make_section_from_phdr (abfd, hdr, index,
+					      "eh_frame_hdr");
+
     default:
       /* Check for any processor-specific program segment types.
          If no handler for them, default to making "segment" sections.  */


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