aarch64-linux.h 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. /* Machine description for AArch64 architecture.
  2. Copyright (C) 2009-2015 Free Software Foundation, Inc.
  3. Contributed by ARM Ltd.
  4. This file is part of GCC.
  5. GCC is free software; you can redistribute it and/or modify it
  6. under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 3, or (at your option)
  8. any later version.
  9. GCC is distributed in the hope that it will be useful, but
  10. WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with GCC; see the file COPYING3. If not see
  15. <http://www.gnu.org/licenses/>. */
  16. #ifndef GCC_AARCH64_LINUX_H
  17. #define GCC_AARCH64_LINUX_H
  18. #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-aarch64%{mbig-endian:_be}%{mabi=ilp32:_ilp32}.so.1"
  19. #undef ASAN_CC1_SPEC
  20. #define ASAN_CC1_SPEC "%{%:sanitize(address):-funwind-tables}"
  21. #undef CC1_SPEC
  22. #define CC1_SPEC GNU_USER_TARGET_CC1_SPEC ASAN_CC1_SPEC
  23. #define CPP_SPEC "%{pthread:-D_REENTRANT}"
  24. #define LINUX_TARGET_LINK_SPEC "%{h*} \
  25. %{static:-Bstatic} \
  26. %{shared:-shared} \
  27. %{symbolic:-Bsymbolic} \
  28. %{rdynamic:-export-dynamic} \
  29. -dynamic-linker " GNU_USER_DYNAMIC_LINKER " \
  30. -X \
  31. %{mbig-endian:-EB} %{mlittle-endian:-EL} \
  32. -maarch64linux%{mabi=ilp32:32}%{mbig-endian:b}"
  33. #ifdef TARGET_FIX_ERR_A53_835769_DEFAULT
  34. #define CA53_ERR_835769_SPEC \
  35. " %{!mno-fix-cortex-a53-835769:--fix-cortex-a53-835769}"
  36. #else
  37. #define CA53_ERR_835769_SPEC \
  38. " %{mfix-cortex-a53-835769:--fix-cortex-a53-835769}"
  39. #endif
  40. #ifdef TARGET_FIX_ERR_A53_843419_DEFAULT
  41. #define CA53_ERR_843419_SPEC \
  42. " %{!mno-fix-cortex-a53-843419:--fix-cortex-a53-843419}"
  43. #else
  44. #define CA53_ERR_843419_SPEC \
  45. " %{mfix-cortex-a53-843419:--fix-cortex-a53-843419}"
  46. #endif
  47. #define LINK_SPEC LINUX_TARGET_LINK_SPEC \
  48. CA53_ERR_835769_SPEC \
  49. CA53_ERR_843419_SPEC
  50. #define GNU_USER_TARGET_MATHFILE_SPEC \
  51. "%{Ofast|ffast-math|funsafe-math-optimizations:crtfastmath.o%s}"
  52. #undef ENDFILE_SPEC
  53. #define ENDFILE_SPEC \
  54. GNU_USER_TARGET_MATHFILE_SPEC " " \
  55. GNU_USER_TARGET_ENDFILE_SPEC
  56. #define TARGET_OS_CPP_BUILTINS() \
  57. do \
  58. { \
  59. GNU_USER_TARGET_OS_CPP_BUILTINS(); \
  60. } \
  61. while (0)
  62. #define TARGET_ASM_FILE_END file_end_indicate_exec_stack
  63. /* Uninitialized common symbols in non-PIE executables, even with
  64. strong definitions in dependent shared libraries, will resolve
  65. to COPY relocated symbol in the executable. See PR65780. */
  66. #undef TARGET_BINDS_LOCAL_P
  67. #define TARGET_BINDS_LOCAL_P default_binds_local_p_2
  68. #endif /* GCC_AARCH64_LINUX_H */