This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[RFC]: .eh_frame section in mingw32 executables
- From: Tristan Gingold <gingold at adacore dot com>
- To: Binutils <binutils at sourceware dot org>
- Cc: Kai Tietz <ktietz70 at googlemail dot com>, Dave Korn <dave dot korn dot cygwin at googlemail dot com>
- Date: Tue, 23 Jun 2009 17:56:00 +0200
- Subject: [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)