Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F96943771
D41120.id124948.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
793 B
Referenced Files
None
Subscribers
None
D41120.id124948.diff
View Options
diff --git a/share/mk/bsd.lib.mk b/share/mk/bsd.lib.mk
--- a/share/mk/bsd.lib.mk
+++ b/share/mk/bsd.lib.mk
@@ -95,6 +95,8 @@
.warning Retpoline requested but not supported by compiler or linker
.endif
.endif
+# LLD sensibly defaults to -znoexecstack, so do the same for BFD
+LDFLAGS.bfd+= -Wl,-znoexecstack
# Initialize stack variables on function entry
.if ${MK_INIT_ALL_ZERO} == "yes"
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
@@ -68,6 +68,8 @@
.warning Retpoline requested but not supported by compiler or linker
.endif
.endif
+# LLD sensibly defaults to -znoexecstack, so do the same for BFD
+LDFLAGS.bfd+= -Wl,-znoexecstack
# Initialize stack variables on function entry
.if ${MK_INIT_ALL_ZERO} == "yes"
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Sep 28, 6:26 AM (21 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
12990450
Default Alt Text
D41120.id124948.diff (793 B)
Attached To
Mode
D41120: share/mk: Pass -znoexecstack to ld.bfd when linking libraries and programs.
Attached
Detach File
Event Timeline
Log In to Comment