Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
rui314 committed Oct 5, 2024
1 parent f69ecd6 commit 40e7b98
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions test/compress-debug-sections.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,11 @@

cat <<EOF | $CC -c -g -o $t/a.o -xc -
#include <stdio.h>
int main() {
printf("Hello world\n");
return 0;
}
int main() { printf("Hello world\n"); }
EOF

$CC -B. -o $t/exe $t/a.o -Wl,--compress-debug-sections=zlib
readelf -tW $t/exe > $t/log
grep -F -A2 '.debug_info' $t/log | tr '\n' ' ' | grep -qw 'COMPRESSED'
grep -F -A2 '.debug_str' $t/log | tr '\n' ' ' | grep -qw 'COMPRESSED'

readelf -WS $t/exe > $t/log
grep -q '\.debug_info .* [Cx] ' $t/log
grep -q '\.debug_str .* MS[Cx] ' $t/log

0 comments on commit 40e7b98

Please sign in to comment.