X-Git-Url: https://ruderich.org/simon/gitweb/?p=blhc%2Fblhc.git;a=blobdiff_plain;f=bin%2Fblhc;fp=bin%2Fblhc;h=9040a084c873e691faae0801f8531588ec046883;hp=26826f07a0abe87740087d16b1a3b63e8233b59f;hb=5668edb1e7b4210adc381c847487861765486cf9;hpb=33f9f4721b73fb4789bff5670cbde41b23071106 diff --git a/bin/blhc b/bin/blhc index 26826f0..9040a08 100755 --- a/bin/blhc +++ b/bin/blhc @@ -1195,6 +1195,7 @@ foreach my $file (@ARGV) { i386 kfreebsd-amd64 kfreebsd-i386 + loong64 mips mips64 mips64el @@ -1217,7 +1218,11 @@ foreach my $file (@ARGV) { ); # Disable unsupported hardening options. - if ($os !~ /^(?:linux|kfreebsd|knetbsd|hurd)$/ or $cpu eq 'hppa') { + if ($disable_harden_pie and exists $builtin_pie_arch{$arch}) { + $harden_pie = 0; + } + if ($os !~ /^(?:linux|kfreebsd|hurd)$/ + or $cpu =~ /^(?:alpha|hppa|ia64)$/) { $harden_pie = 0; } if ($cpu =~ /^(?:ia64|alpha|hppa|nios2)$/ or $arch eq 'arm') { @@ -1228,10 +1233,6 @@ foreach my $file (@ARGV) { $harden_relro = 0; $harden_bindnow = 0; } - - if ($disable_harden_pie and exists $builtin_pie_arch{$arch}) { - $harden_pie = 0; - } } # Default values.