Daily bump.
[official-gcc.git] / gcc / config / i386 / gnu.h
blobaf1d55887ed9f5ba24b1a03fd98c39187f7f1e94
1 /* Configuration for an i386 running GNU with ELF as the target machine. */
3 /*
4 Copyright (C) 1994-2024 Free Software Foundation, Inc.
6 This file is part of GCC.
8 GCC is free software: you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation, either version 3 of the License, or
11 (at your option) any later version.
13 GCC is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with GCC. If not, see <http://www.gnu.org/licenses/>.
22 #define GNU_USER_LINK_EMULATION "elf_i386"
24 #undef GNU_USER_DYNAMIC_LINKER
25 #define GNU_USER_DYNAMIC_LINKER "/lib/ld.so"
27 #ifdef TARGET_LIBC_PROVIDES_SSP
29 /* i386 glibc provides __stack_chk_guard in %gs:0x14. */
30 #define TARGET_THREAD_SSP_OFFSET 0x14
32 /* We only build the -fsplit-stack support in libgcc if the
33 assembler has full support for the CFI directives. Also
34 we only support -fsplit-stack on glibc targets. */
35 #if (DEFAULT_LIBC == LIBC_GLIBC) && HAVE_GAS_CFI_PERSONALITY_DIRECTIVE
36 #define TARGET_CAN_SPLIT_STACK
37 #endif
38 /* We steal the last transactional memory word. */
39 #define TARGET_THREAD_SPLIT_STACK_OFFSET 0x30
40 #endif