diff options
author | Ian Lance Taylor <ian@airs.com> | 1996-01-04 22:10:00 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1996-01-04 22:10:00 +0000 |
commit | ed1f99e770af88041b29edf6c4caddceb9fb56e9 (patch) | |
tree | b0d27612c68b5d9eafebabf8e3ba9e5d7781bc58 | |
parent | f51679867952529ebbe8edbe20f34271989b384c (diff) | |
download | gdb-ed1f99e770af88041b29edf6c4caddceb9fb56e9.zip gdb-ed1f99e770af88041b29edf6c4caddceb9fb56e9.tar.gz gdb-ed1f99e770af88041b29edf6c4caddceb9fb56e9.tar.bz2 |
* 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.
-rw-r--r-- | ld/ChangeLog | 6 | ||||
-rw-r--r-- | ld/configure.host | 18 |
2 files changed, 23 insertions, 1 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index fc658a8..dece9c0 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,9 @@ +Thu Jan 4 17:08:58 1996 Ian Lance Taylor <ian@cygnus.com> + + * 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 <dje@canuck.cygnus.com> * scripttempl/h8300.sc: Use all 64K for ram. diff --git a/ld/configure.host b/ld/configure.host index c844b52..e324be2 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} |