X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=bin%2Fblhc;h=b4d87e45eb9dc856e574906e4958afc04f4317d5;hb=bbdf77da3205abbc957d6b720e01f6d390db46dc;hp=f99460249a9d47e728cbd28368989c364a65ed1e;hpb=33cf53c9dffe333db74d89b90e8b1d1bb88d91b9;p=blhc%2Fblhc.git diff --git a/bin/blhc b/bin/blhc index f994602..b4d87e4 100755 --- a/bin/blhc +++ b/bin/blhc @@ -193,6 +193,7 @@ my @def_ldflags_pie = ( my @def_ldflags_pic = ( '-fPIC', '-fpic', + '-shared', ); # Renaming rules for the output so the regex parts are not visible. Also # stores string values of flag regexps above, see compile_flag_regexp(). @@ -602,7 +603,11 @@ FILE: foreach my $file (@ARGV) { close $fh; if (scalar @input == 0) { - print "No compiler commands!\n"; + if (not $option_buildd) { + print "No compiler commands!\n"; + } else { + print "W-no-compiler-commands\n"; + } $exit |= 1; next FILE; } @@ -850,7 +855,7 @@ blhc - build log hardening check, checks build logs for missing hardening flags =head1 SYNOPSIS -B [options] .. +B [I] Idpkg-buildpackage build log fileE..> =head1 DESCRIPTION @@ -866,7 +871,7 @@ other important warnings. It's licensed under the GPL 3 or later. Force check for all +all (+pie, +bindnow) hardening flags. By default it's auto detected. -=item B<--arch> +=item B<--arch> I Set the specific architecture (e.g. amd64, armel, etc.), automatically disables hardening flags not available on this architecture. Is detected