aboutsummaryrefslogtreecommitdiff
path: root/ld/scripttempl
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1994-09-12 02:42:49 +0000
committerIan Lance Taylor <ian@airs.com>1994-09-12 02:42:49 +0000
commit7b63ff76837b7f0c0c375b30ed9913a3c3bae8a5 (patch)
treeba37964cdafbeab6cfcb92a7e07387669632556e /ld/scripttempl
parent54d478cdbad17a305f2684184a9999cc137ce529 (diff)
downloadgdb-7b63ff76837b7f0c0c375b30ed9913a3c3bae8a5.zip
gdb-7b63ff76837b7f0c0c375b30ed9913a3c3bae8a5.tar.gz
gdb-7b63ff76837b7f0c0c375b30ed9913a3c3bae8a5.tar.bz2
* config/i386lynx.mh: New file.
* scripttempl/i386lynx.sc: Don't put .ctors and .dtors in .text unless CONSTRUCTING.
Diffstat (limited to 'ld/scripttempl')
-rw-r--r--ld/scripttempl/i386lynx.sc4
1 files changed, 2 insertions, 2 deletions
diff --git a/ld/scripttempl/i386lynx.sc b/ld/scripttempl/i386lynx.sc
index 9d344b2..16b72a4 100644
--- a/ld/scripttempl/i386lynx.sc
+++ b/ld/scripttempl/i386lynx.sc
@@ -13,12 +13,12 @@ SECTIONS
${RELOCATING+ etext = .;}
${CONSTRUCTING+ __CTOR_LIST__ = .;}
${CONSTRUCTING+ LONG((__CTOR_END__ - __CTOR_LIST__) / 4 - 2)}
- *(.ctors)
+ ${CONSTRUCTING+ *(.ctors)}
${CONSTRUCTING+ LONG(0)}
${CONSTRUCTING+ __CTOR_END__ = .;}
${CONSTRUCTING+ __DTOR_LIST__ = .;}
${CONSTRUCTING+ LONG((__DTOR_END__ - __DTOR_LIST__) / 4 - 2)}
- *(.dtors)
+ ${CONSTRUCTING+ *(.dtors)}
${CONSTRUCTING+ LONG(0)}
${CONSTRUCTING+ __DTOR_END__ = .;}
*(.fini)