This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[PATCH]: Add gcc_except_table in HC11/HC12 linker scripts
- From: Stephane Carrez <stcarrez at nerim dot fr>
- To: binutils at sources dot redhat dot com
- Date: Tue, 29 Jul 2003 22:22:40 +0200
- Subject: [PATCH]: Add gcc_except_table in HC11/HC12 linker scripts
Hi!
Committed this patch on mainline and 2_14 branch to handle gcc exception table correctly.
Tested with gcc 3.3 on small C++ progr that raise exceptions.
Stephane
2003-07-29 Stephane Carrez <stcarrez@nerim.fr>
* scripttempl/elfm68hc12.sc: Add gcc_except_table.
* scripttempl/elfm68hc11.sc: Likewise.
Index: scripttempl/elfm68hc11.sc
===================================================================
RCS file: /cvs/src/src/ld/scripttempl/elfm68hc11.sc,v
retrieving revision 1.11
diff -u -p -r1.11 elfm68hc11.sc
--- scripttempl/elfm68hc11.sc 23 Jul 2003 19:33:20 -0000 1.11
+++ scripttempl/elfm68hc11.sc 29 Jul 2003 20:15:07 -0000
@@ -328,6 +328,11 @@ SECTIONS
KEEP (*(.eh_frame))
} ${RELOCATING+ > ${TEXT_MEMORY}}
+ .gcc_except_table ${RELOCATING-0} :
+ {
+ *(.gcc_except_table)
+ } ${RELOCATING+ > ${TEXT_MEMORY}}
+
.rodata ${RELOCATING-0} :
{
*(.rodata)
Index: scripttempl/elfm68hc12.sc
===================================================================
RCS file: /cvs/src/src/ld/scripttempl/elfm68hc12.sc,v
retrieving revision 1.11
diff -u -p -r1.11 elfm68hc12.sc
--- scripttempl/elfm68hc12.sc 23 Jul 2003 19:33:20 -0000 1.11
+++ scripttempl/elfm68hc12.sc 29 Jul 2003 20:15:07 -0000
@@ -326,6 +326,11 @@ SECTIONS
KEEP (*(.eh_frame))
} ${RELOCATING+ > ${TEXT_MEMORY}}
+ .gcc_except_table ${RELOCATING-0} :
+ {
+ *(.gcc_except_table)
+ } ${RELOCATING+ > ${TEXT_MEMORY}}
+
.rodata ${RELOCATING-0} :
{
*(.rodata)