gcc vs. clang: symbol stripping
问题 gcc and AMD Open64 opencc both have a -s option to "strip symbol table and relocation information". So far I haven't been able to find the same option in Clang/LLVM. Does it exist? 回答1: You can use a strip utility from binutils. Actually, a llvm-ld has this options http://llvm.org/cmds/llvm-ld.html -strip-all, -s Strip all debug and symbol information from the executable to make it smaller. -strip-debug, -S Strip all debug information from the executable to make it smaller. opt have something