]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/config/alpha/linux-elf.h
Update copyright years.
[thirdparty/gcc.git] / gcc / config / alpha / linux-elf.h
CommitLineData
b0435cf4
RH
1/* Definitions of target machine for GNU compiler
2 for Alpha Linux-based GNU systems using ELF.
8d9254fc 3 Copyright (C) 1996-2020 Free Software Foundation, Inc.
b0435cf4
RH
4 Contributed by Richard Henderson.
5
7ec022b2 6This file is part of GCC.
b0435cf4 7
7ec022b2 8GCC is free software; you can redistribute it and/or modify
b0435cf4 9it under the terms of the GNU General Public License as published by
2f83c7d6 10the Free Software Foundation; either version 3, or (at your option)
b0435cf4
RH
11any later version.
12
7ec022b2 13GCC is distributed in the hope that it will be useful,
b0435cf4
RH
14but WITHOUT ANY WARRANTY; without even the implied warranty of
15MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16GNU General Public License for more details.
17
18You should have received a copy of the GNU General Public License
2f83c7d6
NC
19along with GCC; see the file COPYING3. If not see
20<http://www.gnu.org/licenses/>. */
b0435cf4 21
f326fd7a
RH
22#undef EXTRA_SPECS
23#define EXTRA_SPECS \
952fc2ed
RH
24{ "elf_dynamic_linker", ELF_DYNAMIC_LINKER },
25
7bd85ce0
JM
26#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
27#define UCLIBC_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
74c70253
MK
28#if DEFAULT_LIBC == LIBC_UCLIBC
29#define CHOOSE_DYNAMIC_LINKER(G, U) "%{mglibc:" G ";:" U "}"
30#elif DEFAULT_LIBC == LIBC_GLIBC
31#define CHOOSE_DYNAMIC_LINKER(G, U) "%{muclibc:" U ";:" G "}"
7bd85ce0 32#else
74c70253 33#error "Unsupported DEFAULT_LIBC"
7bd85ce0 34#endif
107fd1c1 35#define GNU_USER_DYNAMIC_LINKER \
7bd85ce0
JM
36 CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER)
37
107fd1c1 38#define ELF_DYNAMIC_LINKER GNU_USER_DYNAMIC_LINKER
b0435cf4 39
cf0005c6
DB
40#define LINK_SPEC "-m elf64alpha %{G*} %{relax:-relax} \
41 %{O*:-O3} %{!O*:-O1} \
42 %{shared:-shared} \
43 %{!shared: \
44 %{!static: \
45 %{rdynamic:-export-dynamic} \
e59dabd2 46 -dynamic-linker %(elf_dynamic_linker)} \
cf0005c6
DB
47 %{static:-static}}"
48
1398405b
L
49#undef LIB_SPEC
50#define LIB_SPEC \
01193617 51"%{pthread:-lpthread} %{shared:-lc}%{!shared:%{profile:-lc_p}%{!profile:-lc}} "
3edc56a9 52
a5fe455b 53#define TARGET_ASM_FILE_END file_end_indicate_exec_stack