summaryrefslogtreecommitdiff
path: root/gcc/config/alpha/elf.h
diff options
context:
space:
mode:
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>1997-08-27 23:02:19 +0000
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>1997-08-27 23:02:19 +0000
commitb111783f04ff0d021f41791a95f643644ec99e76 (patch)
treec337bb8714a610481bba532beabda27a93984978 /gcc/config/alpha/elf.h
parent8020aac44663354bc1eb1cf0d8d59fb61d095075 (diff)
downloadgcc-b111783f04ff0d021f41791a95f643644ec99e76.tar.gz
Patch from Richard Henderson to fix alpha-linux support.
* alpha/elf.h (LINK_SPEC): Conditionalize on USE_GNULIBC_1. * config.guess: Recognize alpha-linux-gnulibc1. * configure.in (alpha-*-linux-gnulibc1): New target. (alpha-*-linux-gnu*): Don't build crtbegin/end. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@14974 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/alpha/elf.h')
-rw-r--r--gcc/config/alpha/elf.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/config/alpha/elf.h b/gcc/config/alpha/elf.h
index 0506b59aa80..63c9f1ba864 100644
--- a/gcc/config/alpha/elf.h
+++ b/gcc/config/alpha/elf.h
@@ -39,6 +39,15 @@ Currently only Linux uses this. */
-Asystem(linux) -Acpu(alpha) -Amachine(alpha) -D__ELF__"
#undef LINK_SPEC
+#ifdef USE_GNULIBC_1
+#define LINK_SPEC "-m elf64alpha -G 8 %{O*:-O3} %{!O*:-O1} \
+ %{shared:-shared} \
+ %{!shared: \
+ %{!static: \
+ %{rdynamic:-export-dynamic} \
+ %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}} \
+ %{static:-static}}"
+#else
#define LINK_SPEC "-m elf64alpha -G 8 %{O*:-O3} %{!O*:-O1} \
%{shared:-shared} \
%{!shared: \
@@ -46,6 +55,7 @@ Currently only Linux uses this. */
%{rdynamic:-export-dynamic} \
%{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \
%{static:-static}}"
+#endif
/* Output at beginning of assembler file. */