linux.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /* Definitions for MIPS running Linux-based GNU systems with ELF format.
  2. Copyright (C) 1998-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. You should have received a copy of the GNU General Public License
  13. along with GCC; see the file COPYING3. If not see
  14. <http://www.gnu.org/licenses/>. */
  15. #define GNU_USER_LINK_EMULATION32 "elf32%{EB:b}%{EL:l}tsmip"
  16. #define GNU_USER_LINK_EMULATION64 "elf64%{EB:b}%{EL:l}tsmip"
  17. #define GNU_USER_LINK_EMULATIONN32 "elf32%{EB:b}%{EL:l}tsmipn32"
  18. #define GLIBC_DYNAMIC_LINKER32 \
  19. "%{mnan=2008:/lib/ld-linux-mipsn8.so.1;:/lib/ld.so.1}"
  20. #define GLIBC_DYNAMIC_LINKER64 \
  21. "%{mnan=2008:/lib64/ld-linux-mipsn8.so.1;:/lib64/ld.so.1}"
  22. #define GLIBC_DYNAMIC_LINKERN32 \
  23. "%{mnan=2008:/lib32/ld-linux-mipsn8.so.1;:/lib32/ld.so.1}"
  24. #undef UCLIBC_DYNAMIC_LINKER32
  25. #define UCLIBC_DYNAMIC_LINKER32 \
  26. "%{mnan=2008:/lib/ld-uClibc-mipsn8.so.0;:/lib/ld-uClibc.so.0}"
  27. #undef UCLIBC_DYNAMIC_LINKER64
  28. #define UCLIBC_DYNAMIC_LINKER64 \
  29. "%{mnan=2008:/lib/ld64-uClibc-mipsn8.so.0;:/lib/ld64-uClibc.so.0}"
  30. #define UCLIBC_DYNAMIC_LINKERN32 \
  31. "%{mnan=2008:/lib32/ld-uClibc-mipsn8.so.0;:/lib32/ld-uClibc.so.0}"
  32. #define BIONIC_DYNAMIC_LINKERN32 "/system/bin/linker32"
  33. #define GNU_USER_DYNAMIC_LINKERN32 \
  34. CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32, \
  35. BIONIC_DYNAMIC_LINKERN32)