]> git.saurik.com Git - apple/xnu.git/blobdiff - config/Makefile
xnu-4903.221.2.tar.gz
[apple/xnu.git] / config / Makefile
index 36b16f2596e57f3e6839cc5dba86083daaeebd49..da46458ffa7dc3563c7438264e0a371b2f98cf42 100644 (file)
@@ -50,6 +50,10 @@ EXPORTS_FILES = $(foreach symbolset,$(SYMBOL_COMPONENT_LIST),$(symbolset).export
 
 SYMBOL_SET_BUILD = $(foreach symbolset, $(SYMBOL_COMPONENT_LIST), $(OBJPATH)/$(symbolset).symbolset)
 
+ifeq ($(KASAN),1)
+KASAN_EXPORTS = $(SRCROOT)/san/Kasan_kasan.exports
+endif
+
 $(OBJPATH)/allsymbols: $(OBJPATH)/$(KERNEL_FILE_NAME)
        $(_v)$(NM) -gj $< > $@
 
@@ -140,9 +144,12 @@ endif
 
 
 $(OBJPATH)/all-kpi.exp: $(EXPORTS_FILES)
-       $(_v)$(SOURCE)/generate_linker_exports.sh $@ $+
+       $(_v)$(SOURCE)/generate_linker_exports.sh $@ $+ $(KASAN_EXPORTS)
+
+$(OBJPATH)/all-alias.exp: $(EXPORTS_FILES)
+       $(_v)$(SOURCE)/generate_linker_aliases.sh $@ $+ $(KASAN_EXPORTS)
 
-do_build_all:: $(OBJPATH)/all-kpi.exp
+do_build_all:: $(OBJPATH)/all-kpi.exp $(OBJPATH)/all-alias.exp
 
 include $(MakeInc_rule)
 include $(MakeInc_dir)