1 ######################################################################
2 #BEGIN Machine dependent Makefile fragment for arm
3 ######################################################################
7 CWARNFLAGS = $(CWARNFLAGS_STD) -Wno-unused-parameter -Wshorten-64-to-32 -Wimplicit-int-conversion
8 CXXWARNFLAGS = $(CXXWARNFLAGS_STD) -Wno-unused-parameter -Wno-cast-qual -Wno-shadow -Wshorten-64-to-32 -Wimplicit-int-conversion
10 # Files that must go in the __HIB segment:
11 UNCONFIGURED_HIB_FILES= \
12 IOHibernateRestoreKernel.o
14 HIB_FILES=$(filter $(UNCONFIGURED_HIB_FILES),$(OBJS))
16 # Unconfigured __HIB files must be Mach-O for "setsegname"
17 # KASAN must be disabled for unconfigured __HIB files
18 # because the kasan runtime isn't available during hibernation resume
19 IOHibernateRestoreKernel.o_CFLAGS_ADD += $(CFLAGS_NOLTO_FLAG) -fno-sanitize=address -UKASAN
20 # Stack protector and stack check must be disabled because the stack protector runtime isn't available
21 IOHibernateRestoreKernel.o_CFLAGS_ADD += -fno-stack-protector -fno-stack-check
22 # signing keys aren't set up yet, so ptrauth must be disabled
23 IOHibernateRestoreKernel.o_CFLAGS_ADD += -fno-ptrauth-calls
25 IOHibernateIO.cpo_CFLAGS_ADD += -I$(SRCROOT)/osfmk
26 IOHibernateRestoreKernel.o_CFLAGS_ADD += -I$(SRCROOT)/osfmk
28 ######################################################################
29 #END Machine dependent Makefile fragment for arm
30 ######################################################################