]> ruderich.org/simon Gitweb - blhc/blhc.git/blobdiff - bin/blhc
Don't treat hexdumps which contain "cc" as compiler lines
[blhc/blhc.git] / bin / blhc
index 193297e4b7fdba4ffb6095074b4c3cea0774e055..dfd42cdbb4b9b457baae84807291146ed8c917a3 100755 (executable)
--- a/bin/blhc
+++ b/bin/blhc
@@ -1074,6 +1074,8 @@ foreach my $file (@ARGV) {
             next if $line =~ m{^\s*rm\s+};
             # Some build systems emit "gcc > file".
             next if $line =~ m{$cc_regex_normal\s*>\s*\S+}o;
+            # Hex output may contain "cc".
+            next if $line =~ m#(?:\b[0-9a-fA-F]{2,}\b\s*){5}#;
 
             # Check if additional hardening options were used. Used to ensure
             # they are used for the complete build.