]> git.saurik.com Git - apple/xnu.git/blame - osfmk/conf/Makefile.x86_64
xnu-4903.221.2.tar.gz
[apple/xnu.git] / osfmk / conf / Makefile.x86_64
CommitLineData
b0d623f7
A
1######################################################################
2#BEGIN Machine dependent Makefile fragment for x86_64
3######################################################################
4
6d2010ae 5CWARNFLAGS = $(CWARNFLAGS_STD) -Wshorten-64-to-32
b0d623f7
A
6
7# Files that must go in the __HIB segment:
8UNCONFIGURED_HIB_FILES= \
39236c6e
A
9 WKdmDecompress_new.o \
10 WKdmData_new.o \
b0d623f7 11 hibernate_restore.o \
39236c6e
A
12 hibernate_bootstrap.o \
13 bcopy.o \
14 bzero.o
b0d623f7
A
15
16HIB_FILES=$(filter $(UNCONFIGURED_HIB_FILES),$(OBJS))
17
39236c6e 18# Unconfigured __HIB files must be Mach-O for "setsegname"
d9a64523
A
19WKdmDecompress_new.o_CFLAGS_ADD += -fno-stack-protector -fno-stack-check $(CFLAGS_NOLTO_FLAG)
20WKdmData_new.o_CFLAGS_ADD += -fno-stack-protector -fno-stack-check $(CFLAGS_NOLTO_FLAG)
21hibernate_restore.o_CFLAGS_ADD += -fno-stack-protector -fno-stack-check $(CFLAGS_NOLTO_FLAG)
22hibernate_bootstrap.o_CFLAGS_ADD += -fno-stack-protector -fno-stack-check $(CFLAGS_NOLTO_FLAG)
23bcopy.o_CFLAGS_ADD += -fno-stack-protector -fno-stack-check $(CFLAGS_NOLTO_FLAG)
24bzero.o_CFLAGS_ADD += -fno-stack-protector -fno-stack-check $(CFLAGS_NOLTO_FLAG)
25fp_simd.o_SFLAGS_ADD += -mavx512f
39236c6e
A
26
27# To appear at the beginning of the __HIB segment, emit
28# as Mach-O so that the linker can enforce symbol order
29boot_pt.o_CFLAGS_ADD += $(CFLAGS_NOLTO_FLAG)
316670eb 30
d9a64523
A
31# fast path lock C leaf functions must be built without stack frames
32locks_i386_opt.o_CFLAGS_ADD += -momit-leaf-frame-pointer -O2
33
b0d623f7
A
34######################################################################
35#END Machine dependent Makefile fragment for x86_64
36######################################################################