elf.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /* Target macros for mips*-elf targets.
  2. Copyright (C) 1994-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. /* MIPS assemblers don't have the usual .set foo,bar construct;
  16. .set is used for assembler options instead. */
  17. #undef SET_ASM_OP
  18. #define ASM_OUTPUT_DEF(FILE, LABEL1, LABEL2) \
  19. do \
  20. { \
  21. fputc ('\t', FILE); \
  22. assemble_name (FILE, LABEL1); \
  23. fputs (" = ", FILE); \
  24. assemble_name (FILE, LABEL2); \
  25. fputc ('\n', FILE); \
  26. } \
  27. while (0)
  28. #undef ASM_DECLARE_OBJECT_NAME
  29. #define ASM_DECLARE_OBJECT_NAME mips_declare_object_name
  30. #undef ASM_FINISH_DECLARE_OBJECT
  31. #define ASM_FINISH_DECLARE_OBJECT mips_finish_declare_object
  32. /* Leave the linker script to choose the appropriate libraries. */
  33. #undef LIB_SPEC
  34. #define LIB_SPEC ""
  35. #undef STARTFILE_SPEC
  36. #define STARTFILE_SPEC "crti%O%s crtbegin%O%s"
  37. #undef ENDFILE_SPEC
  38. #define ENDFILE_SPEC "crtend%O%s crtn%O%s"
  39. #define NO_IMPLICIT_EXTERN_C 1