t-ppccomm revision 96263
1# Common support for PowerPC ELF targets (both EABI and SVR4). 2 3LIB2FUNCS_EXTRA = tramp.S 4 5# This one can't end up in shared libgcc 6LIB2FUNCS_STATIC_EXTRA = eabi.S 7 8# We want fine grained libraries, so use the new code to build the 9# floating point emulation libraries. 10FPBIT = fp-bit.c 11DPBIT = dp-bit.c 12 13 14dp-bit.c: $(srcdir)/config/fp-bit.c 15 cat $(srcdir)/config/fp-bit.c > dp-bit.c 16 17fp-bit.c: $(srcdir)/config/fp-bit.c 18 echo '#define FLOAT' > fp-bit.c 19 cat $(srcdir)/config/fp-bit.c >> fp-bit.c 20 21eabi.S: $(srcdir)/config/rs6000/eabi.asm 22 cat $(srcdir)/config/rs6000/eabi.asm > eabi.S 23 24tramp.S: $(srcdir)/config/rs6000/tramp.asm 25 cat $(srcdir)/config/rs6000/tramp.asm > tramp.S 26 27# Switch synonyms 28MULTILIB_MATCHES_FLOAT = msoft-float=mcpu?401 \ 29 msoft-float=mcpu?403 \ 30 msoft-float=mcpu?ec603e \ 31 msoft-float=mcpu?801 \ 32 msoft-float=mcpu?821 \ 33 msoft-float=mcpu?823 \ 34 msoft-float=mcpu?860 35MULTILIB_MATCHES_ENDIAN = mlittle=mlittle-endian mbig=mbig-endian 36MULTILIB_MATCHES_SYSV = mcall-sysv=mcall-sysv-eabi mcall-sysv=mcall-sysv-noeabi mcall-sysv=mcall-linux mcall-sysv=mcall-netbsd 37 38LIBGCC = stmp-multilib 39INSTALL_LIBGCC = install-multilib 40EXTRA_MULTILIB_PARTS = crtbegin$(objext) crtend$(objext) \ 41 crtbeginS$(objext) crtendS$(objext) crtbeginT$(objext) \ 42 ecrti$(objext) ecrtn$(objext) \ 43 ncrti$(objext) ncrtn$(objext) \ 44 crtsavres$(objext) 45 46# We build {e,n}crti.o and {e,n}crtn.o, which serve to add begin and 47# end labels to all of the special sections used when we link using gcc. 48 49# Assemble startup files. 50ecrti.S: $(srcdir)/config/rs6000/eabi-ci.asm 51 cat $(srcdir)/config/rs6000/eabi-ci.asm >ecrti.S 52 53ecrtn.S: $(srcdir)/config/rs6000/eabi-cn.asm 54 cat $(srcdir)/config/rs6000/eabi-cn.asm >ecrtn.S 55 56ncrti.S: $(srcdir)/config/rs6000/sol-ci.asm 57 cat $(srcdir)/config/rs6000/sol-ci.asm >ncrti.S 58 59ncrtn.S: $(srcdir)/config/rs6000/sol-cn.asm 60 cat $(srcdir)/config/rs6000/sol-cn.asm >ncrtn.S 61 62crtsavres.S: $(srcdir)/config/rs6000/crtsavres.asm 63 cat $(srcdir)/config/rs6000/crtsavres.asm >crtsavres.S 64 65# Build multiple copies of ?crt{i,n}.o, one for each target switch. 66$(T)ecrti$(objext): ecrti.S 67 $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) -c ecrti.S -o $(T)ecrti$(objext) 68 69$(T)ecrtn$(objext): ecrtn.S 70 $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) -c ecrtn.S -o $(T)ecrtn$(objext) 71 72$(T)ncrti$(objext): ncrti.S 73 $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) -c ncrti.S -o $(T)ncrti$(objext) 74 75$(T)ncrtn$(objext): ncrtn.S 76 $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) -c ncrtn.S -o $(T)ncrtn$(objext) 77 78$(T)crtsavres$(objext): crtsavres.S 79 $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) -c crtsavres.S -o $(T)crtsavres$(objext) 80 81# It is important that crtbegin.o, etc., aren't surprised by stuff in .sdata. 82CRTSTUFF_T_CFLAGS = -msdata=none 83# Make sure crt*.o are built with -fPIC even if configured with 84# --enable-shared --disable-multilib 85CRTSTUFF_T_CFLAGS_S = -fPIC -msdata=none 86