Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
features: Add support to build ports as PIE executables.
This will allow utilization of ASLR provided by the kernel. Sponsored by: Netflix
- Loading branch information
1 parent
e3400d4
commit c6e7c89
Showing
3 changed files
with
26 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# PIE Support | ||
|
||
.if !defined(_PIE_MK_INCLUDED) | ||
_PIE_MK_INCLUDED= yes | ||
PIE_Include_MAINTAINER= portmgr@FreeBSD.org | ||
|
||
. if !defined(PIE_UNSAFE) | ||
PIE_CFLAGS?= -fPIE -fPIC | ||
CFLAGS+= ${PIE_CFLAGS} | ||
CXXFLAGS+= ${PIE_CFLAGS} | ||
LDFLAGS+= -pie | ||
. endif | ||
.endif | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters