diff options
author | Ian Lance Taylor <ian@airs.com> | 1994-09-12 02:42:49 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1994-09-12 02:42:49 +0000 |
commit | 7b63ff76837b7f0c0c375b30ed9913a3c3bae8a5 (patch) | |
tree | ba37964cdafbeab6cfcb92a7e07387669632556e | |
parent | 54d478cdbad17a305f2684184a9999cc137ce529 (diff) | |
download | gdb-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.
-rw-r--r-- | ld/ChangeLog | 6 | ||||
-rw-r--r-- | ld/config/i386lynx.mh | 2 | ||||
-rw-r--r-- | ld/scripttempl/i386lynx.sc | 4 |
3 files changed, 10 insertions, 2 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index ac3d60c..c3d9307 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,9 @@ +Sat Sep 10 16:05:38 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) + + * config/i386lynx.mh: New file. + * scripttempl/i386lynx.sc: Don't put .ctors and .dtors in .text + unless CONSTRUCTING. + Thu Sep 8 13:25:24 1994 Ian Lance Taylor (ian@sanguine.cygnus.com) * emulparams/elf32mipb.sh (TEMPLATE_NAME): Define as elf32. diff --git a/ld/config/i386lynx.mh b/ld/config/i386lynx.mh new file mode 100644 index 0000000..4867740 --- /dev/null +++ b/ld/config/i386lynx.mh @@ -0,0 +1,2 @@ +HOSTING_CRT0=/lib/init1.o +HOSTING_LIBS=`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else gcc -print-libgcc-file-name; fi` -lc -lm /lib/initn.o 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) |