linux.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /* Definitions for MicroBlaze running Linux.
  2. Copyright (C) 2009-2015 Free Software Foundation, Inc.
  3. This file is part of GCC.
  4. Contributed by Michael Eager <eager@eagercon.com>.
  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. #undef TARGET_SUPPORTS_PIC
  17. #define TARGET_SUPPORTS_PIC 1
  18. #undef CPP_SPEC
  19. #define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}"
  20. #undef TLS_NEEDS_GOT
  21. #define TLS_NEEDS_GOT 1
  22. #define DYNAMIC_LINKER "/lib/ld.so.1"
  23. #undef SUBTARGET_EXTRA_SPECS
  24. #define SUBTARGET_EXTRA_SPECS \
  25. { "dynamic_linker", DYNAMIC_LINKER }
  26. #undef LINK_SPEC
  27. #define LINK_SPEC "%{shared:-shared} \
  28. %{!shared: \
  29. %{!static: \
  30. %{rdynamic:-export-dynamic} \
  31. -dynamic-linker %(dynamic_linker)} \
  32. %{static:-static}} \
  33. %{mbig-endian:-EB} \
  34. %{mlittle-endian:-EL}"
  35. /* For the microblaze-*-linux* subtarget. */
  36. #undef TARGET_OS_CPP_BUILTINS
  37. #define TARGET_OS_CPP_BUILTINS() GNU_USER_TARGET_OS_CPP_BUILTINS()