rtems.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /* Configuration common to all targets running RTEMS.
  2. Copyright (C) 2000-2015 Free Software Foundation, Inc.
  3. This file is part of GCC.
  4. GCC is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 3, or (at your option)
  7. any later version.
  8. GCC is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. Under Section 7 of GPL version 3, you are granted additional
  13. permissions described in the GCC Runtime Library Exception, version
  14. 3.1, as published by the Free Software Foundation.
  15. You should have received a copy of the GNU General Public License and
  16. a copy of the GCC Runtime Library Exception along with this program;
  17. see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
  18. <http://www.gnu.org/licenses/>. */
  19. /* The system headers under RTEMS are C++-aware. */
  20. #undef NO_IMPLICIT_EXTERN_C
  21. #define NO_IMPLICIT_EXTERN_C
  22. /*
  23. * Dummy start/end specification to let linker work as
  24. * needed by autoconf scripts using this compiler.
  25. */
  26. #undef STARTFILE_SPEC
  27. #define STARTFILE_SPEC "crt0.o%s"
  28. #undef ENDFILE_SPEC
  29. #define ENDFILE_SPEC ""
  30. /*
  31. * Some targets do not set up LIB_SPECS, override it, here.
  32. */
  33. #define STD_LIB_SPEC "%{!shared:%{g*:-lg} %{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}}"
  34. #undef LIB_SPEC
  35. #define LIB_SPEC "%{!qrtems: " STD_LIB_SPEC "} " \
  36. "%{!nostdlib: %{qrtems: --start-group \
  37. -lrtemsbsp -lrtemscpu \
  38. -lc -lgcc --end-group %{!qnolinkcmds: -T linkcmds%s}}}"
  39. #define TARGET_POSIX_IO