Actions
Feature #1527
closed
SW
AG
Add ability to compile as a Position-Independent Executable (PIE)
Feature #1527:
Add ability to compile as a Position-Independent Executable (PIE)
Effort:
Difficulty:
Label:
Description
In order to apply ASLR fully to Suricata, Suricata needs to be able to compile as a Position-Independent Executable (PIE). It seems that simply adding -fPIE to CFLAGS/CXXFLAGS and -pie to LDFLAGS doesn't work as that will cause a linking failure with util-time. I would suggest adding an --enable-pie flag to autoconf that will add those CFLAGS/CXXFLAGS/LDFLAGS to the right spots.
I've tried to use those flags myself. I'm running HardenedBSD 11-CURRENT/amd64. Here's a log of the build of my build attempt with the custom flags: http://ix.io/keX
Files
Actions