From: Ian Lance Taylor Date: Thu, 4 Jan 1996 22:10:00 +0000 (+0000) Subject: * configure.host: Change existing Linux HOSTING_CRT0 to be used X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ed1f99e770af88041b29edf6c4caddceb9fb56e9;p=binutils-gdb.git * configure.host: Change existing Linux HOSTING_CRT0 to be used for a.out only, and put in appropriate HOSTING_CRT0 and HOSTING_LIBS values for Linux ELF. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index fc658a888ed..dece9c08127 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,9 @@ +Thu Jan 4 17:08:58 1996 Ian Lance Taylor + + * configure.host: Change existing Linux HOSTING_CRT0 to be used + for a.out only, and put in appropriate HOSTING_CRT0 and + HOSTING_LIBS values for Linux ELF. + Thu Jan 4 12:02:05 1996 Doug Evans * scripttempl/h8300.sc: Use all 64K for ram. diff --git a/ld/configure.host b/ld/configure.host index c844b52cac1..e324be291e9 100644 --- a/ld/configure.host +++ b/ld/configure.host @@ -32,6 +32,7 @@ i[345]86-*-bsd* | i[345]86-*-freebsd* | i[345]86-*-netbsd*) # for the genscripts.sh call to work. There's nothing magic about # the value `/lib'; it's just a dummy. NATIVE_LIB_DIRS=/lib + HOSTING_CRT0=/usr/lib/crt0.o ;; i[345]86-*-go32*) @@ -65,10 +66,15 @@ i[345]86-*-sco* | i[345]86-*-isc*) HOSTING_LIBS='`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else gcc -print-libgcc-file-name; fi` -lc `if [ -f ../gcc/crtend.o ]; then echo ../gcc/crtend.o; else gcc -print-libgcc-file-name | sed -e 's/libgcc.a/crtend.o/'; fi` /lib/crtn.o' ;; -i[345]86-*-linux*) +i[345]86-*-linuxaout* | i[345]86-*-linuxoldld) HOSTING_CRT0=/usr/lib/crt0.o ;; +i[345]86-*-linux*) + HOSTING_CRT0='/usr/lib/crt1.o /usr/lib/crti.o /usr/lib/crtbegin.o' + HOSTING_LIBS='`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else gcc -print-libgcc-file-name; fi` -lc /usr/lib/crtend.o /usr/lib/crtn.o' + ;; + i[345]86-*-lynxos*) 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' @@ -88,6 +94,11 @@ m68*-*-lynxos*) HOSTING_LIBS='`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else gcc -print-libgcc-file-name; fi` -lc -lm /lib/initn.o' ;; +m68*-motorola-sysv) + HOSTING_CRT0='`if [ -f ../gcc/crt0.o ]; then echo ../gcc/crt0.o; elif [ -f \`gcc -print-file-name=\`crt0.o ]; then echo \`gcc -print-file-name=\`crt0.o; else echo /lib/crt0.o; fi`' + HOSTING_LIBS='`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else gcc -print-libgcc-file-name; fi` -lc881 `if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else gcc -print-libgcc-file-name; fi`' + ;; + m68*-sun-*) HOSTING_CRT0='/usr/lib/crt0.o /usr/lib/Fcrt1.o -L/usr/lib/fsoft.o' ;; @@ -98,6 +109,11 @@ m88*-*-dgux*) HOSTING_LIBS=/usr/sde/m88kbcs/lib/libc.a ;; +m88*-motorola-sysv3) + HOSTING_CRT0='/lib/crt0.o `if [ -f ../gcc/crtbegin.o ]; then echo ../gcc/crtbegin.o; else gcc -print-libgcc-file-name | sed -e 's/libgcc.a/crtbegin.o/'; fi`' + HOSTING_LIBS='`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else gcc -print-libgcc-file-name; fi` -lc `if [ -f ../gcc/crtend.o ]; then echo ../gcc/crtend.o; else gcc -print-libgcc-file-name | sed -e 's/libgcc.a/crtend.o/'; fi` `if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else gcc -print-libgcc-file-name; fi`' + ;; + romp-*-*) HDEFINES=-DNO_VARARGS CC=${CC-gcc}