1# Cannot use default rules due to $(CRTSTUFF_T_CFLAGS).
2CUSTOM_CRTIN = yes
3
4LIB1ASMSRC = c6x/lib1funcs.S
5LIB1ASMFUNCS = _divsi3 _udivsi3 _umodsi3 _modsi3 _udivmodsi4 _divmodsi4
6LIB1ASMFUNCS += _strasgi _strasgi_64plus _clzsi2 _clzdi2 _clz
7LIB1ASMFUNCS += _push_rts _pop_rts _call_stub
8
9LIB2FUNCS_EXCLUDE = _cmpdi2 _ucmpdi2 _gcc_bcmp _eprintf _clzsi _clzdi
10
11LIB2ADD += $(srcdir)/config/c6x/gef.c \
12           $(srcdir)/config/c6x/gtf.c \
13           $(srcdir)/config/c6x/lef.c \
14           $(srcdir)/config/c6x/ltf.c \
15           $(srcdir)/config/c6x/eqf.c \
16           $(srcdir)/config/c6x/ged.c \
17           $(srcdir)/config/c6x/gtd.c \
18           $(srcdir)/config/c6x/led.c \
19           $(srcdir)/config/c6x/ltd.c \
20           $(srcdir)/config/c6x/eqd.c
21
22# Avoid failures when the user's GOT becomes too large.
23HOST_LIBGCC2_CFLAGS += -msdata=none
24
25LIB2ADDEH = $(srcdir)/config/c6x/unwind-c6x.c \
26  $(srcdir)/config/c6x/libunwind.S \
27  $(srcdir)/config/c6x/pr-support.c $(srcdir)/unwind-c.c
28
29# Assemble startup files.
30crti.o: $(srcdir)/config/c6x/crti.S
31	$(crt_compile) -c $(CRTSTUFF_T_CFLAGS) $<
32
33crtn.o: $(srcdir)/config/c6x/crtn.S
34	$(crt_compile) -c $(CRTSTUFF_T_CFLAGS) $<
35
36# Avoid failures when the user's GOT becomes too large.
37CRTSTUFF_T_CFLAGS = -msdata=none
38CRTSTUFF_T_CFLAGS_S = -msdata=none
39
40SHLIB_MAPFILES += $(srcdir)/config/c6x/libgcc-eabi.ver
41