* config/i386lynx.mh: New file.
authorIan Lance Taylor <ian@airs.com>
Mon, 12 Sep 1994 02:42:49 +0000 (02:42 +0000)
committerIan Lance Taylor <ian@airs.com>
Mon, 12 Sep 1994 02:42:49 +0000 (02:42 +0000)
* scripttempl/i386lynx.sc: Don't put .ctors and .dtors in .text
unless CONSTRUCTING.

ld/ChangeLog
ld/config/i386lynx.mh [new file with mode: 0644]
ld/scripttempl/i386lynx.sc

index ac3d60c7f174ac46279d51c6872957229e698b3e..c3d9307d686568b69e40c6d09e4c400791f277e6 100644 (file)
@@ -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 (file)
index 0000000..4867740
--- /dev/null
@@ -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
index 9d344b2d677d07de5241392a0fe7c57a1531bc7f..16b72a43c75b8ac41f5cd8c21613328a42b51cf9 100644 (file)
@@ -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)