]>
git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/config/xtensa/linux.h
1 /* Xtensa Linux configuration.
2 Derived from the configuration for GCC for Intel i386 running Linux.
3 Copyright (C) 2001-2023 Free Software Foundation, Inc.
5 This file is part of GCC.
7 GCC is free software; you can redistribute it and/or modify it under
8 the terms of the GNU General Public License as published by the Free
9 Software Foundation; either version 3, or (at your option) any later
12 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
13 WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
17 You should have received a copy of the GNU General Public License
18 along with GCC; see the file COPYING3. If not see
19 <http://www.gnu.org/licenses/>. */
21 #define TARGET_OS_CPP_BUILTINS() GNU_USER_TARGET_OS_CPP_BUILTINS()
23 #undef SUBTARGET_CPP_SPEC
24 #define SUBTARGET_CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}"
27 #define SIZE_TYPE "unsigned int"
30 #define PTRDIFF_TYPE "int"
33 #define WCHAR_TYPE "long int"
35 #undef WCHAR_TYPE_SIZE
36 #define WCHAR_TYPE_SIZE 32
40 "%{mtext-section-literals:--text-section-literals} \
41 %{mno-text-section-literals:--no-text-section-literals} \
42 %{mtarget-align:--target-align} \
43 %{mno-target-align:--no-target-align} \
44 %{mlongcalls:--longcalls} \
45 %{mno-longcalls:--no-longcalls} \
46 %{mauto-litpools:--auto-litpools} \
47 %{mno-auto-litpools:--no-auto-litpools} \
48 %{mabi=windowed:--abi-windowed} \
49 %{mabi=call0:--abi-call0}"
51 #define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
57 %{!static:%{!static-pie: \
58 %{rdynamic:-export-dynamic} \
59 -dynamic-linker " GNU_USER_DYNAMIC_LINKER "}} \
60 %{static-pie:-static -pie --no-dynamic-linker -z text} \
62 %{mabi=windowed:--abi-windowed} \
63 %{mabi=call0:--abi-call0}"
65 #undef LOCAL_LABEL_PREFIX
66 #define LOCAL_LABEL_PREFIX "."
68 /* Always enable "-fpic" for Xtensa Linux. */
69 #define XTENSA_ALWAYS_PIC 1
73 #define TARGET_ASM_FILE_END file_end_indicate_exec_stack