aboutsummaryrefslogtreecommitdiff
path: root/ld/configure.host
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-01-04 22:10:00 +0000
committerIan Lance Taylor <ian@airs.com>1996-01-04 22:10:00 +0000
commited1f99e770af88041b29edf6c4caddceb9fb56e9 (patch)
treeb0d27612c68b5d9eafebabf8e3ba9e5d7781bc58 /ld/configure.host
parentf51679867952529ebbe8edbe20f34271989b384c (diff)
downloadgdb-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.
Diffstat (limited to 'ld/configure.host')
-rw-r--r--ld/configure.host18
1 files changed, 17 insertions, 1 deletions
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}