X-Git-Url: https://ruderich.org/simon/gitweb/?p=blhc%2Fblhc.git;a=blobdiff_plain;f=bin%2Fblhc;h=838f3c35a777c0f03aad99b6975970b7d0ccc77f;hp=fa0f8a396baa04fcfccbe4e9208f6a392898bf84;hb=766ce7c378d81e02b6cf993ba5c39f8729daf43a;hpb=d52160954caa2af70f44181bcf113df1a5c3c61b diff --git a/bin/blhc b/bin/blhc index fa0f8a3..838f3c3 100755 --- a/bin/blhc +++ b/bin/blhc @@ -24,7 +24,7 @@ use warnings; use Getopt::Long (); use Text::ParseWords (); -our $VERSION = '0.05'; +our $VERSION = '0.06'; # CONSTANTS/VARIABLES @@ -1012,8 +1012,8 @@ foreach my $file (@ARGV) { # Option or auto detected. if ($arch) { - # The following was partially copied from dpkg-dev 1.18.7 - # (/usr/share/perl5/Dpkg/Vendor/Debian.pm, add_hardening_flags()), + # The following was partially copied from dpkg-dev 1.18.10 + # (/usr/share/perl5/Dpkg/Vendor/Debian.pm, _add_hardening_flags()), # copyright Raphaël Hertzog , Kees Cook # , Canonical, Ltd. licensed under GPL version 2 or # later. Keep it in sync. @@ -1022,7 +1022,8 @@ foreach my $file (@ARGV) { my ($abi, $os, $cpu) = Dpkg::Arch::debarch_to_debtriplet($arch); # Disable unsupported hardening options. - if ($os !~ /^(?:linux|knetbsd|hurd)$/ or $cpu =~ /^(?:hppa|avr32)$/) { + if ($os !~ /^(?:linux|kfreebsd|knetbsd|hurd)$/ + or $cpu =~ /^(?:hppa|avr32)$/) { $harden_pie = 0; } if ($cpu =~ /^(?:ia64|alpha|hppa|nios2)$/ or $arch eq 'arm') {