no-pie FLAG needed for ubuntu yakety yak (16.10)

Bug #1633559 reported by Cyrus Harmon
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
SBCL
Fix Released
Undecided
Unassigned

Bug Description

Apparently some platforms must was "nopie" in their CC dumpspecs as that's what we currently check for. Without breaking that, I've added what ubuntu 16.10 needs to build for its no-pie invocation:

--- a/src/runtime/Config.x86-64-linux
+++ b/src/runtime/Config.x86-64-linux
@@ -57,6 +57,12 @@ LINKFLAGS += -nopie
 LDFLAGS += -nopie
 endif

+ifneq ($(shell $(CC) -dumpspecs 2>/dev/null | grep -e no-pie),)
+CFLAGS += -fno-pie
+LINKFLAGS += -no-pie
+LDFLAGS += -no-pie
+endif
+
 # Nothing to do for after-grovel-headers.
 .PHONY: after-grovel-headers
 after-grovel-headers:

Revision history for this message
Christoph Egger (christoph-egger) wrote :

Please consider to move the fix out of the x86-64 case into more general land. This is relevant for all gcc based builds on debian stretch for example (arm, arm64, powerpc, x86-32, x86-64)

Revision history for this message
Stas Boukarev (stassats) wrote :

3403dbaffc0a9bab49b78cf0bb5308cce0a0c153 disables PIE everywhere.

Changed in sbcl:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.