1 /* Definitions of target machine for GNU compiler. Irix version 5 with gas. */
3 /* Enable debugging. */
4 #define DBX_DEBUGGING_INFO 1
5 #define DWARF2_DEBUGGING_INFO 1
6 #define SDB_DEBUGGING_INFO 1
7 #define MIPS_DEBUGGING_INFO 1
8 #define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG
10 /* GNU as does handle DWARF2 directives. */
11 #undef DWARF2_UNWIND_INFO
12 #define DWARF2_UNWIND_INFO 1
14 /* Override mips.h version to match DWARF 2 default. */
15 #undef MDEBUG_ASM_SPEC
16 #define MDEBUG_ASM_SPEC "%{gstabs*|gcoff*:-mdebug} \
17 %{!gstabs*:%{!gcoff*:-no-mdebug}}"
19 /* Override iris5.h version to invoke [cd]tors and register eh frame
23 %{G*} %{EB} %{EL} %{mips1} %{mips2} %{mips3} \
24 %{bestGnum} %{shared} %{non_shared} \
25 %{call_shared} %{no_archive} %{exact_version} \
26 %{static: -non_shared} \
28 %{!shared:%{!non_shared:%{!call_shared: -call_shared -no_unresolved}}}} \
29 %{rpath} -init __do_global_ctors -fini __do_global_dtors \
30 %{shared:-hidden_symbol __do_global_ctors,__do_global_ctors_1,__do_global_dtors} \
33 /* Override iris5.h versions to include crtbegin.o and crtend.o. */
36 #define STARTFILE_SPEC "\
38 %{!shared:%{pg:gcrt1.o%s}%{!pg:%{p:mcrt1.o%s libprof1.a%s}%{!p:crt1.o%s}}}} \
41 %{!pg:%{p:/usr/lib/nonshared/mcrt1.o%s libprof1.a%s} \
42 %{!p:/usr/lib/nonshared/crt1.o%s}}} \
46 #define ENDFILE_SPEC "crtend.o%s %{!shared:crtn.o%s}"
48 /* Irix 5 does not have some strange restrictions that Irix 3 had. */
49 #undef SET_FILE_NUMBER
50 #define SET_FILE_NUMBER() ++num_source_filenames
51 #undef LABEL_AFTER_LOC
52 #define LABEL_AFTER_LOC(STREAM)
54 /* We need to use .esize and .etype instead of .size and .type to
55 avoid conflicting with ELF directives. These are only recognized
56 by gas, anyhow, not the native assembler. */
58 #define PUT_SDB_SIZE(a) \
60 fprintf (asm_out_file, "\t.esize\t" HOST_WIDE_INT_PRINT_DEC ";", \
61 (HOST_WIDE_INT) (a)); \
65 #define PUT_SDB_TYPE(a) \
67 fprintf (asm_out_file, "\t.etype\t0x%x;", (a)); \
70 /* Switch into a generic section. */
71 #undef TARGET_ASM_NAMED_SECTION
72 #define TARGET_ASM_NAMED_SECTION default_elf_asm_named_section
74 /* Add -g to mips.h default to avoid confusing gas with local symbols
75 generated from stabs info. */
77 #define NM_FLAGS "-Bng"
79 /* Disable SHF_MERGE support. Even if gas supports it, the IRIX ld does not
80 without a special elspec(5) file. */
81 #undef HAVE_GAS_SHF_MERGE