From ba511d919ea9bfe727fefb897a5503be93f1cade Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Sat, 30 Jan 2016 09:37:05 +0100 Subject: Dpkg::Vendor::Debian: Do not enable stack-protector on nios2 This gcc target does not support stack-protector. Acked-by: Marek Vasut Signed-off-by: Guillem Jover --- scripts/Dpkg/Vendor/Debian.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/Dpkg') 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) -- cgit v1.2.3