Project

General

Profile

Actions

Bug #1668

closed

Position-Independent Executable (PIE) Support on HardenedBSD

Added by Shawn Webb over 8 years ago. Updated 4 months ago.

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

2016-01-12_suricata-3.0.r3.log (329 KB) 2016-01-12_suricata-3.0.r3.log Shawn Webb, 01/12/2016 04:12 PM
Actions #1

Updated by Shawn Webb over 8 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.

Actions #2

Updated by Victor Julien over 8 years ago

  • Status changed from New to Closed

Glad you got it sorted out!

Actions #3

Updated by EdwinScapy EdwinScapy 4 months ago

  • File 30.gif added
Actions #4

Updated by Victor Julien 4 months ago

  • File deleted (30.gif)
Actions

Also available in: Atom PDF