diff options
author | Guillem Jover <guillem@debian.org> | 2016-01-30 09:37:05 +0100 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2016-02-15 02:10:45 +0100 |
commit | ba511d919ea9bfe727fefb897a5503be93f1cade (patch) | |
tree | 5840575f495de8a8b851eac3c8ef70f146b804bc /scripts/Dpkg | |
parent | 4a2c19ed61d5b8c57f33526bf3566ac6213adae2 (diff) | |
download | dpkg-ba511d919ea9bfe727fefb897a5503be93f1cade.tar.gz |
Dpkg::Vendor::Debian: Do not enable stack-protector on nios2
This gcc target does not support stack-protector.
Acked-by: Marek Vasut <marex@denx.de>
Signed-off-by: Guillem Jover <guillem@debian.org>
Diffstat (limited to 'scripts/Dpkg')
-rw-r--r-- | scripts/Dpkg/Vendor/Debian.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/Dpkg/Vendor/Debian.pm b/scripts/Dpkg/Vendor/Debian.pm index db40b2c54..bf47144b2 100644 --- a/scripts/Dpkg/Vendor/Debian.pm +++ b/scripts/Dpkg/Vendor/Debian.pm @@ -262,8 +262,8 @@ sub _add_hardening_flags { # (#574716). $use_feature{pie} = 0; } - if ($cpu =~ /^(?:ia64|alpha|hppa)$/ or $arch eq 'arm') { - # Stack protector disabled on ia64, alpha, hppa. + if ($cpu =~ /^(?:ia64|alpha|hppa|nios2)$/ or $arch eq 'arm') { + # Stack protector disabled on ia64, alpha, hppa, nios2. # "warning: -fstack-protector not supported for this target" # Stack protector disabled on arm (ok on armel). # compiler supports it incorrectly (leads to SEGV) |