summaryrefslogtreecommitdiff
path: root/ld/configure.host
diff options
context:
space:
mode:
Diffstat (limited to 'ld/configure.host')
-rw-r--r--ld/configure.host7
1 files changed, 7 insertions, 0 deletions
diff --git a/ld/configure.host b/ld/configure.host
index baf79b8857..ab7bc7dbe5 100644
--- a/ld/configure.host
+++ b/ld/configure.host
@@ -56,6 +56,7 @@ case "${host}" in
*-*-linux*)
HOSTING_CRT0='-dynamic-linker `${CC} --help --verbose 2>&1 | egrep "ld[^ ]*\.so" | sed -e "s,.*-dynamic-linker[ ][ ]*\(.*/ld[^ ]*\.so..\).*,\1,"` `${CC} --print-file-name=crt1.o` `${CC} --print-file-name=crti.o` `if [ -f ../gcc/crtbegin.o ]; then echo ../gcc/crtbegin.o; else ${CC} --print-file-name=crtbegin.o; fi`'
+ HOSTING_SCRT0='-dynamic-linker `${CC} --help --verbose 2>&1 | egrep "ld[^ ]*\.so" | sed -e "s,.*-dynamic-linker[ ][ ]*\(.*/ld[^ ]*\.so..\).*,\1,"` `${CC} --print-file-name=Scrt1.o` `${CC} --print-file-name=crti.o` `if [ -f ../gcc/crtbeginS.o ]; then echo ../gcc/crtbeginS.o; else ${CC} --print-file-name=crtbeginS.o; fi`'
HOSTING_LIBS='-L`dirname \`${CC} --print-file-name=libc.so\`` '"$HOSTING_LIBS"' `if [ -f ../gcc/crtend.o ]; then echo ../gcc/crtend.o; else ${CC} --print-file-name=crtend.o; fi` `${CC} --print-file-name=crtn.o`'
;;
@@ -242,3 +243,9 @@ alpha*-*-*)
;;
esac
+
+# Provide default HOSTING_SCRT0. Each host should define a proper one
+# if needed.
+if test -z "$HOSTING_SCRT0"; then
+ HOSTING_SCRT0="$HOSTING_CRT0"
+fi