bsd.prog.mk (82854693aec11f87f1f0560e8395452b64f1770f) bsd.prog.mk (973bbdab47035ebd16200c63d095904924dc44d9)
1# from: @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91
2
3.include <bsd.init.mk>
4.include <bsd.compiler.mk>
5.include <bsd.linker.mk>
6
7.SUFFIXES: .out .o .bc .c .cc .cpp .cxx .C .m .y .l .ll .ln .s .S .asm
8

--- 57 unchanged lines hidden (view full) ---

66.else
67.warning Retpoline requested but not supported by compiler or linker
68.endif
69.endif
70# LLD sensibly defaults to -znoexecstack, so do the same for BFD
71LDFLAGS.bfd+= -Wl,-znoexecstack
72.if ${MK_BRANCH_PROTECTION} != "no"
73CFLAGS+= -mbranch-protection=standard
1# from: @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91
2
3.include <bsd.init.mk>
4.include <bsd.compiler.mk>
5.include <bsd.linker.mk>
6
7.SUFFIXES: .out .o .bc .c .cc .cpp .cxx .C .m .y .l .ll .ln .s .S .asm
8

--- 57 unchanged lines hidden (view full) ---

66.else
67.warning Retpoline requested but not supported by compiler or linker
68.endif
69.endif
70# LLD sensibly defaults to -znoexecstack, so do the same for BFD
71LDFLAGS.bfd+= -Wl,-znoexecstack
72.if ${MK_BRANCH_PROTECTION} != "no"
73CFLAGS+= -mbranch-protection=standard
74.if ${MACHINE_ARCH} == "aarch64" && defined(BTI_REPORT_ERROR)
74.if ${LINKER_FEATURES:Mbti-report} && defined(BTI_REPORT_ERROR)
75LDFLAGS+= -Wl,-zbti-report=error
76.endif
77.endif
78
79# Initialize stack variables on function entry
80.if ${OPT_INIT_ALL} != "none"
81.if ${COMPILER_FEATURES:Minit-all}
82CFLAGS+= -ftrivial-auto-var-init=${OPT_INIT_ALL}

--- 305 unchanged lines hidden ---
75LDFLAGS+= -Wl,-zbti-report=error
76.endif
77.endif
78
79# Initialize stack variables on function entry
80.if ${OPT_INIT_ALL} != "none"
81.if ${COMPILER_FEATURES:Minit-all}
82CFLAGS+= -ftrivial-auto-var-init=${OPT_INIT_ALL}

--- 305 unchanged lines hidden ---