| 1 |
/* Definitions for AArch64 running GNU/Hurd. |
| 2 |
Copyright (C) 2009-2025 Free Software Foundation, Inc. |
| 3 |
|
| 4 |
This file is part of GCC. |
| 5 |
|
| 6 |
GCC is free software; you can redistribute it and/or modify it |
| 7 |
under the terms of the GNU General Public License as published by |
| 8 |
the Free Software Foundation; either version 3, or (at your option) |
| 9 |
any later version. |
| 10 |
|
| 11 |
GCC is distributed in the hope that it will be useful, but |
| 12 |
WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 14 |
General Public License for more details. |
| 15 |
|
| 16 |
You should have received a copy of the GNU General Public License |
| 17 |
along with GCC; see the file COPYING3. If not see |
| 18 |
<http://www.gnu.org/licenses/>. */ |
| 19 |
|
| 20 |
#ifndef GCC_AARCH64_GNU_H |
| 21 |
#define GCC_AARCH64_GNU_H |
| 22 |
|
| 23 |
#define GNU_USER_DYNAMIC_LINKER "/lib/ld-aarch64%{mbig-endian:_be}%{mabi=ilp32:_ilp32}.so.1" |
| 24 |
|
| 25 |
#define CPP_SPEC "%{pthread:-D_REENTRANT}" |
| 26 |
|
| 27 |
#define GNU_TARGET_LINK_SPEC "%{h*} \ |
| 28 |
%{static:-Bstatic} \ |
| 29 |
%{shared:-shared} \ |
| 30 |
%{symbolic:-Bsymbolic} \ |
| 31 |
%{!static:%{!static-pie: \ |
| 32 |
%{rdynamic:-export-dynamic} \ |
| 33 |
%{!shared:-dynamic-linker " GNU_USER_DYNAMIC_LINKER "}}} \ |
| 34 |
%{static-pie:-Bstatic -pie --no-dynamic-linker -z text} \ |
| 35 |
-X \ |
| 36 |
%{mbig-endian:-EB} %{mlittle-endian:-EL} \ |
| 37 |
-maarch64gnu%{mabi=ilp32:32}%{mbig-endian:b}" |
| 38 |
|
| 39 |
#ifndef CC1_SPEC |
| 40 |
# define CC1_SPEC AARCH64_ERRATA_COMPILE_SPEC |
| 41 |
#endif |
| 42 |
|
| 43 |
#ifndef CC1PLUS_SPEC |
| 44 |
# define CC1PLUS_SPEC AARCH64_ERRATA_COMPILE_SPEC |
| 45 |
#endif |
| 46 |
|
| 47 |
#define LINK_SPEC GNU_TARGET_LINK_SPEC AARCH64_ERRATA_LINK_SPEC |
| 48 |
|
| 49 |
#define GNU_USER_TARGET_MATHFILE_SPEC \ |
| 50 |
"%{Ofast|ffast-math|funsafe-math-optimizations:%{!shared:crtfastmath.o%s}}" |
| 51 |
|
| 52 |
#undef ENDFILE_SPEC |
| 53 |
#define ENDFILE_SPEC \ |
| 54 |
GNU_USER_TARGET_MATHFILE_SPEC " " \ |
| 55 |
GNU_USER_TARGET_ENDFILE_SPEC |
| 56 |
|
| 57 |
#define TARGET_OS_CPP_BUILTINS() \ |
| 58 |
do \ |
| 59 |
{ \ |
| 60 |
GNU_USER_TARGET_OS_CPP_BUILTINS(); \ |
| 61 |
} \ |
| 62 |
while (0) |
| 63 |
|
| 64 |
#define TARGET_ASM_FILE_END aarch64_file_end_indicate_exec_stack |
| 65 |
|
| 66 |
/* Uninitialized common symbols in non-PIE executables, even with |
| 67 |
strong definitions in dependent shared libraries, will resolve |
| 68 |
to COPY relocated symbol in the executable. See PR65780. */ |
| 69 |
#undef TARGET_BINDS_LOCAL_P |
| 70 |
#define TARGET_BINDS_LOCAL_P default_binds_local_p_2 |
| 71 |
|
| 72 |
/* Define this to be nonzero if static stack checking is supported. */ |
| 73 |
#define STACK_CHECK_STATIC_BUILTIN 1 |
| 74 |
|
| 75 |
#endif /* GCC_AARCH64_GNU_H */ |