netbsd-elf.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /* Definitions of target machine for GNU compiler,
  2. for NetBSD/vax ELF systems.
  3. Copyright (C) 2002-2015 Free Software Foundation, Inc.
  4. This file is part of GCC.
  5. GCC is free software; you can redistribute it and/or modify
  6. it 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,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU 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. /* Names to predefine in the preprocessor for this target OS. */
  17. #undef TARGET_OS_CPP_BUILTINS
  18. #define TARGET_OS_CPP_BUILTINS() \
  19. do \
  20. { \
  21. NETBSD_OS_CPP_BUILTINS_ELF(); \
  22. } \
  23. while (0)
  24. #undef CPP_SPEC
  25. #define CPP_SPEC NETBSD_CPP_SPEC
  26. #ifndef NETBSD_CC1_AND_CC1PLUS_SPEC
  27. #define NETBSD_CC1_AND_CC1PLUS_SPEC ""
  28. #endif
  29. #undef CC1_SPEC
  30. #define CC1_SPEC NETBSD_CC1_AND_CC1PLUS_SPEC VAX_CC1_AND_CC1PLUS_SPEC
  31. #undef CC1PLUS_SPEC
  32. #define CC1PLUS_SPEC NETBSD_CC1_AND_CC1PLUS_SPEC VAX_CC1_AND_CC1PLUS_SPEC
  33. #define NETBSD_ENTRY_POINT "__start"
  34. #undef LINK_SPEC
  35. #if 0
  36. /* FIXME: We must link all executables statically until PIC support
  37. is added to the compiler. */
  38. #define LINK_SPEC \
  39. "%{assert*} %{R*} %{rpath*} \
  40. %{shared:%ethe -shared option is not currently supported for VAX ELF} \
  41. %{!shared: \
  42. -dc -dp \
  43. %{!nostdlib: \
  44. %{!r: \
  45. %{!e*:-e %(netbsd_entry_point)}}} \
  46. %{!static:-static} \
  47. %{static:-static}}"
  48. #else
  49. #define LINK_SPEC NETBSD_LINK_SPEC_ELF
  50. #endif
  51. #define EXTRA_SPECS \
  52. { "netbsd_entry_point", NETBSD_ENTRY_POINT },
  53. /* We use gas, not the UNIX assembler. */
  54. #undef TARGET_DEFAULT
  55. #define TARGET_DEFAULT MASK_QMATH