2 crt2.o: $(srcdir)/config/rs6000/darwin-crt2.c
3 $(crt_compile) -mmacosx-version-min=10.1 -c $<
5 # The sources for this indicate that there are some parts that
7 crt3_2.o: $(srcdir)/config/darwin-crt3.c
8 $(crt_compile) -mmacosx-version-min=10.1 -c $<
10 # The outlined register save/restore functions need to run anywhere, and
11 # they must be leaf functions suitable for use in an endfile.
14 $(srcdir)/config/rs6000/darwin-gpsave.S \
15 $(srcdir)/config/rs6000/darwin-fpsave.S \
16 $(srcdir)/config/rs6000/darwin-vecsave.S
23 darwin-gpsave.o: $(srcdir)/config/rs6000/darwin-gpsave.S
24 $(crt_compile) -mmacosx-version-min=10.1 -c $<
26 darwin-fpsave.o: $(srcdir)/config/rs6000/darwin-fpsave.S
27 $(crt_compile) -mmacosx-version-min=10.1 -c $<
29 darwin-vecsave.o: $(srcdir)/config/rs6000/darwin-vecsave.S
30 $(crt_compile) -mmacosx-version-min=10.1 -c $<
32 # We build these into a library, so that they are only linked as needed and not
33 # forced into every object.
35 libef_ppc.a: $(PPC_ENDFILE_OBJS)
36 $(AR_CREATE_FOR_TARGET) $@ $(PPC_ENDFILE_OBJS)
37 $(RANLIB_FOR_TARGET) $@
39 dw_ppc.o: $(srcdir)/config/rs6000/darwin-world.S
40 $(crt_compile) -mmacosx-version-min=10.1 -c $<
42 LIB2ADD = $(srcdir)/config/rs6000/darwin-tramp.S \
43 $(srcdir)/config/darwin-64.c \
44 $(srcdir)/config/rs6000/darwin-world.S
46 # The .S files above are designed to run on all processors, even though
47 # they use AltiVec instructions.
48 # -Wa is used because -force_cpusubtype_ALL doesn't work with -dynamiclib.
50 HOST_LIBGCC2_CFLAGS += -Wa,-force_cpusubtype_ALL
52 # Although the default for 10.4 is G3, we need the unwinder to be built
53 # with vector support so that the "save/rest_world" outlined functions are
55 unwind-dw2_s.o: HOST_LIBGCC2_CFLAGS += -maltivec
56 unwind-dw2.o: HOST_LIBGCC2_CFLAGS += -maltivec
58 LIB2ADDEH += $(srcdir)/config/rs6000/darwin-fallback.c