summaryrefslogtreecommitdiffstats
path: root/redhat-hardened-ld
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2016-11-08 15:16:37 +0200
committerPanu Matilainen <pmatilai@redhat.com>2016-11-08 15:21:31 +0200
commitb1a45b244ea644b78b0f626643758a05c0f049b5 (patch)
tree41176b587f47c20fc6d2c9916216092d511e7a99 /redhat-hardened-ld
parent3234495f75b7a89879ce3e1c37f6bd6c779615d5 (diff)
downloadredhat-rpm-config-b1a45b244ea644b78b0f626643758a05c0f049b5.zip
redhat-rpm-config-b1a45b244ea644b78b0f626643758a05c0f049b5.tar.gz
redhat-rpm-config-b1a45b244ea644b78b0f626643758a05c0f049b5.tar.xz
-pie is incompatible with static linkage (#1343892, #1287743)
The hardened gcc specs do not handle static linkage, so building with -static has been broken since commit d9235d2d90873ff6207cb26d331e979ae9d651fd. Adjust the -ld spec file to avoid -pie when static linkage is used, as suggested by Florian Weimer.
Diffstat (limited to 'redhat-hardened-ld')
-rw-r--r--redhat-hardened-ld2
1 files changed, 1 insertions, 1 deletions
diff --git a/redhat-hardened-ld b/redhat-hardened-ld
index 5825256..ca378a9 100644
--- a/redhat-hardened-ld
+++ b/redhat-hardened-ld
@@ -1,5 +1,5 @@
*self_spec:
-+ %{!shared:%{!r:-pie}}
++ %{!static:%{!shared:%{!r:-pie}}}
*link:
+ -z now