Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F154033199
D53501.id165622.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
785 B
Referenced Files
None
Subscribers
None
D53501.id165622.diff
View Options
diff --git a/share/mk/bsd.prog.mk b/share/mk/bsd.prog.mk
--- a/share/mk/bsd.prog.mk
+++ b/share/mk/bsd.prog.mk
@@ -49,9 +49,11 @@
LDFLAGS+= -Wl,-zretpolineplt
.endif
.else
+.if !defined(_NO_INCLUDE_COMPILERMK)
.warning Retpoline requested but not supported by compiler or linker
.endif
.endif
+.endif
# LLD sensibly defaults to -znoexecstack, so do the same for BFD
LDFLAGS.bfd+= -Wl,-znoexecstack
.if ${MK_BRANCH_PROTECTION} != "no"
@@ -71,9 +73,11 @@
CXXFLAGS+= -enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang
.endif
.else
+.if !defined(_NO_INCLUDE_COMPILERMK)
.warning INIT_ALL (${OPT_INIT_ALL}) requested but not supported by compiler
.endif
.endif
+.endif
# Zero used registers on return (mitigate some ROP)
.if ${MK_ZEROREGS} != "no"
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Apr 26, 3:16 PM (9 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32176560
Default Alt Text
D53501.id165622.diff (785 B)
Attached To
Mode
D53501: bsd.prog.mk: Skip warnings if compiler.mk was not included
Attached
Detach File
Event Timeline
Log In to Comment