Created
October 23, 2021 09:46
-
-
Save Sherlock-Holo/e5aa640d89fdf989152ee7a488f09777 to your computer and use it in GitHub Desktop.
strip-bpf-tc.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for sec in '.BTF.ext' '.eh_frame' '.debug_loc' '.debug_info' '.debug_ranges' '.debug_frame' '.debug_line' | |
do | |
llvm-strip --remove-section $sec $1 | |
done | |
llvm-strip --remove-section .text $1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment