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]

[RFC]: .eh_frame section in mingw32 executables


Hi,

is there something wrong with the following patch ? We'd like to have an .eh_frame section
in win32/win64 executables so that gdb could print backtraces even for files not compiled with -g.


Tristan.

*** ld/scripttempl/pep.sc	18 Apr 2008 09:06:22 -0000	1.5
--- ld/scripttempl/pep.sc	23 Jun 2009 15:52:23 -0000
***************
*** 103,109 ****
    .rdata ${RELOCATING+BLOCK(__section_alignment__)} :
    {
      ${R_RDATA}
-     ${RELOCATING+ *(.eh_frame)}
      ${RELOCATING+___RUNTIME_PSEUDO_RELOC_LIST__ = .;}
      ${RELOCATING+__RUNTIME_PSEUDO_RELOC_LIST__ = .;}
      *(.rdata_runtime_pseudo_reloc)
--- 103,108 ----
***************
*** 111,116 ****
--- 110,120 ----
      ${RELOCATING+__RUNTIME_PSEUDO_RELOC_LIST_END__ = .;}
    }

+   .eh_frame ${RELOCATING+BLOCK(__section_alignment__)} :
+   {
+     *(.eh_frame)
+   }
+
    .pdata ${RELOCATING+BLOCK(__section_alignment__)} :
    {
      *(.pdata)


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