]> git.ipfire.org Git - thirdparty/gcc.git/blob - libgcc/config/arm/t-arm
ARMv8-M Security Extension's cmse_nonsecure_call: use __gnu_cmse_nonsecure_call
[thirdparty/gcc.git] / libgcc / config / arm / t-arm
1 LIB1ASMSRC = arm/lib1funcs.S
2 LIB1ASMFUNCS = _thumb1_case_sqi _thumb1_case_uqi _thumb1_case_shi \
3 _thumb1_case_uhi _thumb1_case_si
4
5 HAVE_CMSE:=$(findstring __ARM_FEATURE_CMSE,$(shell $(gcc_compile_bare) -dM -E - </dev/null))
6 ifneq ($(shell $(gcc_compile_bare) -E -mcmse - </dev/null 2>/dev/null),)
7 CMSE_OPTS:=-mcmse
8 endif
9
10 ifdef HAVE_CMSE
11 libgcc-objects += cmse.o cmse_nonsecure_call.o
12
13 cmse.o: $(srcdir)/config/arm/cmse.c
14 $(gcc_compile) -c $(CMSE_OPTS) $<
15 cmse_nonsecure_call.o: $(srcdir)/config/arm/cmse_nonsecure_call.S
16 $(gcc_compile) -c $<
17 endif