Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F142686210
D3001.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
621 B
Referenced Files
None
Subscribers
None
D3001.diff
View Options
Index: share/mk/bsd.lib.mk
===================================================================
--- share/mk/bsd.lib.mk
+++ share/mk/bsd.lib.mk
@@ -58,6 +58,8 @@
CTFFLAGS+= -g
.endif
+LDFLAGS+= -Wl,-z,relro -Wl,-z,now
+
.include <bsd.libnames.mk>
# prefer .s to a .c, add .po, remove stuff not used in the BSD libraries
Index: share/mk/bsd.prog.mk
===================================================================
--- share/mk/bsd.prog.mk
+++ share/mk/bsd.prog.mk
@@ -11,6 +11,8 @@
CFLAGS+=${COPTS}
.endif
+LDFLAGS+= -Wl,-z,relro -Wl,-z,now
+
.if ${MK_ASSERT_DEBUG} == "no"
CFLAGS+= -DNDEBUG
NO_WERROR=
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 23, 6:01 AM (15 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27877719
Default Alt Text
D3001.diff (621 B)
Attached To
Mode
D3001: Activate relro and bindnow in build system
Attached
Detach File
Event Timeline
Log In to Comment