| 1 |
/* Definitions for Linux-based systems with libraries in ELF format. |
| 2 |
Copyright (C) 2021-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 |
| 7 |
it 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, |
| 12 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 |
GNU 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 |
/* Default system library search paths. |
| 21 |
* This ensures that a compiler configured with --disable-multilib |
| 22 |
* can work in a multilib environment. */ |
| 23 |
|
| 24 |
#if !defined(LA_DEFAULT_TARGET_MUSL) \ |
| 25 |
&& defined(LA_DISABLE_MULTILIB) \ |
| 26 |
&& defined(LA_DISABLE_MULTIARCH) |
| 27 |
|
| 28 |
#if DEFAULT_ABI_BASE == ABI_BASE_LP64D |
| 29 |
#define ABI_LIBDIR "lib64" |
| 30 |
#elif DEFAULT_ABI_BASE == ABI_BASE_LP64F |
| 31 |
#define ABI_LIBDIR "lib64/f32" |
| 32 |
#elif DEFAULT_ABI_BASE == ABI_BASE_LP64S |
| 33 |
#define ABI_LIBDIR "lib64/sf" |
| 34 |
#endif |
| 35 |
|
| 36 |
#endif |
| 37 |
|
| 38 |
#ifndef ABI_LIBDIR |
| 39 |
#define ABI_LIBDIR "lib" |
| 40 |
#endif |
| 41 |
|
| 42 |
#define STANDARD_STARTFILE_PREFIX_1 "/" ABI_LIBDIR "/" |
| 43 |
#define STANDARD_STARTFILE_PREFIX_2 "/usr/" ABI_LIBDIR "/" |
| 44 |
|
| 45 |
|
| 46 |
/* Define this to be nonzero if static stack checking is supported. */ |
| 47 |
#define STACK_CHECK_STATIC_BUILTIN 1 |
| 48 |
|
| 49 |
/* The default value isn't sufficient in 64-bit mode. */ |
| 50 |
#define STACK_CHECK_PROTECT (TARGET_64BIT ? 16 * 1024 : 12 * 1024) |
| 51 |
|
| 52 |
#define TARGET_ASM_FILE_END file_end_indicate_exec_stack |
| 53 |
|
| 54 |
/* The stack pointer needs to be moved while checking the stack. */ |
| 55 |
#define STACK_CHECK_MOVING_SP 1 |