]>
Commit | Line | Data |
---|---|---|
0e5a4ad8 EC |
1 | # Don't let CTOR_LIST end up in sdata section. |
2 | CRTSTUFF_T_CFLAGS = -G 0 | |
3 | ||
4 | # Assemble startup files. | |
5 | $(T)crti.o: $(srcdir)/config/mips/crti.asm $(GCC_PASSES) | |
6 | $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(MULTILIB_CFLAGS) $(INCLUDES) \ | |
7 | -c -o $(T)crti.o -x assembler-with-cpp $(srcdir)/config/mips/crti.asm | |
8 | ||
9 | $(T)crtn.o: $(srcdir)/config/mips/crtn.asm $(GCC_PASSES) | |
10 | $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(MULTILIB_CFLAGS) $(INCLUDES) \ | |
11 | -c -o $(T)crtn.o -x assembler-with-cpp $(srcdir)/config/mips/crtn.asm | |
12 | ||
0e5a4ad8 EC |
13 | # We must build libgcc2.a with -G 0, in case the user wants to link |
14 | # without the $gp register. | |
15 | TARGET_LIBGCC2_CFLAGS = -G 0 | |
16 | ||
0e5a4ad8 EC |
17 | # Build the libraries for both hard and soft floating point |
18 | ||
e2c14f5d | 19 | ifneq ($(filter MIPS_ABI_DEFAULT=ABI_EABI,$(tm_defines)),) |
0a4a51c7 AN |
20 | MULTILIB_OPTIONS = msoft-float EL/EB mips32/mips32r2/mips64/mips64r2 |
21 | MULTILIB_DIRNAMES = soft-float el eb mips32 mips32r2 mips64 mips64r2 | |
e2c14f5d | 22 | else |
0a4a51c7 AN |
23 | MULTILIB_OPTIONS = msoft-float/mfp64 EL/EB mips32/mips32r2/mips64/mips64r2 |
24 | MULTILIB_DIRNAMES = soft-float fp64 el eb mips32 mips32r2 mips64 mips64r2 | |
e2c14f5d | 25 | ifneq ($(filter MIPS_ISA_DEFAULT=33,$(tm_defines)),) |
0a4a51c7 | 26 | MULTILIB_EXCLUSIONS = mips32/mfp64 mips64/mfp64 mips64r2/mfp64 |
e2c14f5d RS |
27 | else |
28 | MULTILIB_EXCLUSIONS = !mips32r2/mfp64 | |
29 | endif | |
30 | endif | |
fded6d78 | 31 | MULTILIB_MATCHES = EL=mel EB=meb |
0e5a4ad8 EC |
32 | EXTRA_MULTILIB_PARTS = crtbegin.o crtend.o crti.o crtn.o |
33 | ||
34 | LIBGCC = stmp-multilib | |
35 | INSTALL_LIBGCC = install-multilib |