[RFC]: .eh_frame section in mingw32 executables
Tristan Gingold
gingold@adacore.com
Tue Jun 23 16:43:00 GMT 2009
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)
More information about the Binutils
mailing list