1 # BEGIN boiler-plate MIPS stuff
3 # Don't let CTOR_LIST end up in sdata section.
4 CRTSTUFF_T_CFLAGS = -G 0
6 # We must build libgcc2.a with -G 0, in case the user wants to link
7 # without the $gp register.
8 TARGET_LIBGCC2_CFLAGS = -G 0
10 LIB2FUNCS_STATIC_EXTRA = $(srcdir)/config/mips/mips16.S \
11 $(srcdir)/config/mips/vr4120-div.S
12 EXTRA_MULTILIB_PARTS = crtbegin.o crtend.o crti.o crtn.o
14 # Assemble startup files.
15 $(T)crti.o: $(srcdir)/config/mips/crti.asm $(GCC_PASSES)
16 $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(MULTILIB_CFLAGS) $(INCLUDES) \
17 -c -o $(T)crti.o -x assembler-with-cpp $(srcdir)/config/mips/crti.asm
19 $(T)crtn.o: $(srcdir)/config/mips/crtn.asm $(GCC_PASSES)
20 $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(MULTILIB_CFLAGS) $(INCLUDES) \
21 -c -o $(T)crtn.o -x assembler-with-cpp $(srcdir)/config/mips/crtn.asm
28 # Endianness: EB or EL
35 # mabi=eabi/mgp32/mlong64
37 # Architecture: march=vr4120 with -mfix-vr4120
38 # march=vr4130 with -mfix-vr4130 (default)
43 # Total: 2 * 6 * 5 = 60 multilibs.
46 # Extra vr4300 multilibs
47 # ----------------------
49 # Endianness: EB or EL
53 # Architecture: vr4300.
55 # Total: 2 * 1 * 2 = 2 multilibs.
58 # Extra MIPS16 multilibs
59 # ----------------------
61 # Endianness: EB or EL
67 # Architecture: march=vr4120 with -mfix-vr4120
68 # march=vr4130 with -mfix-vr4130 (default)
70 # Total: 2 * 3 * 2 = 12 multilibs.
73 mabi=32/mabi=o64/mabi=eabi \
77 mfix-vr4120/mfix-vr4130/march=vr4300/march=vr5000/march=vr5400/march=vr5500
85 vr4120 vr4130 vr4300 vr5000 vr5400 vr5500
87 MULTILIB_MATCHES = EL=mel EB=meb mfix-vr4120=march?vr4120 \
88 mfix-vr4130=march?vr4130
90 # Assume a 41xx-series is the default: we'd need a *mips16 entry if
91 # the default processor didn't support mips16. Also assume the
92 # default ABI is EABI64 -mlong32.
93 MULTILIB_EXCEPTIONS = \
99 *mips16/march=vr4300 \
100 $(MIPS16_EXCEPTIONS) \
103 MIPS16_EXCEPTIONS = \
107 VR4300_EXCEPTIONS = \
108 *mabi=32*march=vr4300 \
109 *mgp32*march=vr4300 \
110 *mlong64*march=vr4300 \