Gcc vs. clang: delete characters

gcc and AMD Open64 opencc both have an option -sfor "strip table table and relocation information". So far I have not been able to find the same option in Clang / LLVM. He exists?

+5
source share
1 answer

You can use the utility stripfrom binutils.

Actually, llvm-ld has the following options http://llvm.org/cmds/llvm-ld.html

-strip-all, -s Remove all debugging information and symbols from the executable to make it smaller.

-strip-debug, -S Remove all debugging information from the executable by decreasing it.

opt also has:

-strip- . , -strip, , .

+6

All Articles