Actions
Bug #1668
closedPosition-Independent Executable (PIE) Support on HardenedBSD
Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
Affected Versions:
Effort:
Difficulty:
Label:
Description
It seems that attempting to compile as a PIE on HardenedBSD (and likely FreeBSD) causes linking errors. Attached is a build log. The HardenedBSD ports entry for suricata can be found here: https://github.com/HardenedBSD/hardenedbsd-ports/tree/master/security/suricata
I added a USES flag that forces the linker to attempt to link as a pie (LDFLAGS=-pie). I also added a USES flag that forces the linker to link with RELRO support.
Files
Updated by Shawn Webb about 9 years ago
Disregard this issue. I was being too aggressive with the CFLAGS. Removing the pie USES flag allows compilation as a PIE. Great job, guys! Sorry for the linenoise. This ticket can be closed.
Updated by Victor Julien about 9 years ago
- Status changed from New to Closed
Glad you got it sorted out!
Actions