summaryrefslogtreecommitdiff
path: root/scripts/Dpkg/Vendor/Debian.pm
diff options
context:
space:
mode:
authorMatthias Klose <doko@ubuntu.com>2013-06-11 13:49:19 +0200
committerGuillem Jover <guillem@debian.org>2013-06-22 05:12:54 +0200
commitb8a0dbd784a9e838c3e6735d51bf76a61a63d8e4 (patch)
treeea51806cb9a7d00e8ba3f64f2fee69d3ee9b8854 /scripts/Dpkg/Vendor/Debian.pm
parent62783ea26c4cfcf5507390739dac056a2db3b7a8 (diff)
downloaddpkg-b8a0dbd784a9e838c3e6735d51bf76a61a63d8e4.tar.gz
dpkg-buildflags: Do not set -fstack-protector on arm64
The flag is not yet supported there. Closes: #711936 [guillem@debian.org: Update comment. ] Signed-off-by: Guillem Jover <guillem@debian.org>
Diffstat (limited to 'scripts/Dpkg/Vendor/Debian.pm')
-rw-r--r--scripts/Dpkg/Vendor/Debian.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/Dpkg/Vendor/Debian.pm b/scripts/Dpkg/Vendor/Debian.pm
index 269e1c98e..3f3022513 100644
--- a/scripts/Dpkg/Vendor/Debian.pm
+++ b/scripts/Dpkg/Vendor/Debian.pm
@@ -122,8 +122,8 @@ sub add_hardening_flags {
# (#574716).
$use_feature{pie} = 0;
}
- if ($cpu =~ /^(ia64|alpha|mips|mipsel|hppa)$/ or $arch eq 'arm') {
- # Stack protector disabled on ia64, alpha, mips, mipsel, hppa.
+ if ($cpu =~ /^(ia64|alpha|mips|mipsel|hppa|arm64)$/ or $arch eq 'arm') {
+ # Stack protector disabled on ia64, alpha, arm64, mips, mipsel, hppa.
# "warning: -fstack-protector not supported for this target"
# Stack protector disabled on arm (ok on armel).
# compiler supports it incorrectly (leads to SEGV)