Unverified Commit 43216284 authored by Shawn Webb's avatar Shawn Webb
Browse files

HBSD: Add RELRO Support

github-issue: #40

This adds support for RELRO and BINDNOW in the build system. This
patch was obtained from Baptiste Darroussin from his patch submitted
to FreeBSD Phabricator. Further work will need to happen in the ports

Obtained-from: Baptiste Daroussin (bapt@freebsd.org)
Obtained-from: FreeBSD Phabricator - https://reviews.freebsd.org/D3001

Signed-off-by: Shawn Webb's avatarShawn Webb <shawn.webb@hardenedbsd.org>
parent 9ec646d6
......@@ -58,6 +58,8 @@ SHARED_CXXFLAGS+= -g
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
......@@ -19,6 +19,8 @@ LDFLAGS+= -pie
LDFLAGS+= -Wl,-z,relro -Wl,-z,now
.if ${MK_ASSERT_DEBUG} == "no"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment