]> ruderich.org/simon Gitweb - blhc/blhc.git/commitdiff
Sync architecture specific hardening support with dpkg 1.18.7
authorSimon Ruderich <simon@ruderich.org>
Sun, 5 Jun 2016 10:16:32 +0000 (12:16 +0200)
committerSimon Ruderich <simon@ruderich.org>
Sun, 5 Jun 2016 12:30:35 +0000 (14:30 +0200)
bin/blhc

index 4be8e84bfdccba8ff7d165bee13244d0c48286c2..73b770df9e210c0f2139a62bc7622570a5890e71 100755 (executable)
--- a/bin/blhc
+++ b/bin/blhc
@@ -996,7 +996,7 @@ foreach my $file (@ARGV) {
 
     # Option or auto detected.
     if ($arch) {
-        # The following was partially copied from dpkg-dev 1.18.2
+        # The following was partially copied from dpkg-dev 1.18.7
         # (/usr/share/perl5/Dpkg/Vendor/Debian.pm, add_hardening_flags()),
         # copyright RaphaĆ«l Hertzog <hertzog@debian.org>, Kees Cook
         # <kees@debian.org>, Canonical, Ltd. licensed under GPL version 2 or
@@ -1009,7 +1009,7 @@ foreach my $file (@ARGV) {
         if ($os !~ /^(?:linux|knetbsd|hurd)$/ or $cpu =~ /^(?:hppa|avr32)$/) {
             $harden_pie = 0;
         }
-        if ($cpu =~ /^(?:ia64|alpha|hppa)$/ or $arch eq 'arm') {
+        if ($cpu =~ /^(?:ia64|alpha|hppa|nios2)$/ or $arch eq 'arm') {
             $harden_stack = 0;
             $harden_stack_strong = 0;
         }