elf.h revision 90075
1/* Definitions for embedded ia64-elf target. */ 2 3/* This macro is a C statement to print on `stderr' a string describing the 4 particular machine description choice. */ 5 6#define TARGET_VERSION fprintf (stderr, " (IA-64) ELF"); 7 8/* Define this to be a string constant containing `-D' options to define the 9 predefined macros that identify this machine and system. These macros will 10 be predefined unless the `-ansi' option is specified. */ 11/* ??? This is undefed in svr4.h. */ 12#define CPP_PREDEFINES "-Dia64 -Amachine=ia64" 13 14/* A C string constant that tells the GNU CC driver program options to pass to 15 the assembler. It can also specify how to translate options you give to GNU 16 CC into options for GNU CC to pass to the assembler. */ 17 18#if ((TARGET_CPU_DEFAULT | TARGET_DEFAULT) & MASK_GNU_AS) != 0 19/* GNU AS. */ 20#define ASM_SPEC \ 21 "%{mno-gnu-as:-N so} %{!mno-gnu-as:-x} %{mconstant-gp} %{mauto-pic}" 22#else 23/* Intel ias. */ 24#define ASM_SPEC \ 25 "%{!mgnu-as:-N so} %{mgnu-as:-x} %{mconstant-gp:-M const_gp}\ 26 %{mauto-pic:-M no_plabel}" 27#endif 28 29/* A C string constant that tells the GNU CC driver program options to pass to 30 the linker. It can also specify how to translate options you give to GNU CC 31 into options for GNU CC to pass to the linker. */ 32 33/* The Intel linker does not support dynamic linking, so we need -dn. 34 The Intel linker gives annoying messages unless -N so is used. */ 35#if ((TARGET_CPU_DEFAULT | TARGET_DEFAULT) & MASK_GNU_LD) != 0 36/* GNU LD. */ 37#define LINK_SPEC "%{mno-gnu-ld:-dn -N so}" 38#else 39/* Intel ild. */ 40#define LINK_SPEC "%{!mgnu-ld:-dn -N so}" 41#endif 42 43/* svr4.h links with crti.o/crtn.o, but elfos.h does not. We override elfos.h 44 so that we can use the standard ELF Unix method. */ 45#undef ENDFILE_SPEC 46#define ENDFILE_SPEC "crtend.o%s crtn.o%s" 47 48#undef STARTFILE_SPEC 49#define STARTFILE_SPEC "%{!shared: \ 50 %{!symbolic: \ 51 %{pg:gcrt0.o%s}%{!pg:%{p:mcrt0.o%s}%{!p:crt0.o%s}}}}\ 52 crti.o%s crtbegin.o%s" 53 54/* End of elf.h */ 55