]> ruderich.org/simon Gitweb - blhc/blhc.git/blobdiff - bin/blhc
Fix false positive with embedded gcc -print-* commands
[blhc/blhc.git] / bin / blhc
index 44fa3cee9d74821e8a883c226d55e657ae8bfd1c..81d3b1237aee9eb6a961c050ec2b6a3a95c522bc 100755 (executable)
--- a/bin/blhc
+++ b/bin/blhc
@@ -1078,6 +1078,8 @@ foreach my $file (@ARGV) {
             next if $line =~ m#(?:\b[0-9a-fA-F]{2,}\b\s*){5}#;
             # Meson build output
             next if $line =~ /^C\+\+ linker for the host machine: /;
+            # Embedded `gcc -print-*` commands
+            next if $line =~ /`$cc_regex_normal\s*[^`]*-print-\S+`/;
 
             # Check if additional hardening options were used. Used to ensure
             # they are used for the complete build.