(root)/
gcc-13.2.0/
gcc/
config/
loongarch/
linux.h
       1  /* Definitions for Linux-based systems with libraries in ELF format.
       2     Copyright (C) 2021-2023 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_DISABLE_MULTILIB) && defined(LA_DISABLE_MULTIARCH)
      25  
      26    #if DEFAULT_ABI_BASE == ABI_BASE_LP64D
      27      #define ABI_LIBDIR "lib64"
      28    #elif DEFAULT_ABI_BASE == ABI_BASE_LP64F
      29      #define ABI_LIBDIR "lib64/f32"
      30    #elif DEFAULT_ABI_BASE == ABI_BASE_LP64S
      31      #define ABI_LIBDIR "lib64/sf"
      32    #endif
      33  
      34  #endif
      35  
      36  #ifndef ABI_LIBDIR
      37  #define ABI_LIBDIR "lib"
      38  #endif
      39  
      40  #define STANDARD_STARTFILE_PREFIX_1 "/" ABI_LIBDIR "/"
      41  #define STANDARD_STARTFILE_PREFIX_2 "/usr/" ABI_LIBDIR "/"
      42  
      43  
      44  /* Define this to be nonzero if static stack checking is supported.  */
      45  #define STACK_CHECK_STATIC_BUILTIN 1
      46  
      47  /* The default value isn't sufficient in 64-bit mode.  */
      48  #define STACK_CHECK_PROTECT (TARGET_64BIT ? 16 * 1024 : 12 * 1024)
      49  
      50  #define TARGET_ASM_FILE_END file_end_indicate_exec_stack
      51  
      52  /* The stack pointer needs to be moved while checking the stack.  */
      53  #define STACK_CHECK_MOVING_SP 1