我想从使用 gcc for arm 平台编译的目标文件中删除以下符号
.debug_frame
.debug_line
.debug_aranges
.debug_info
.debug_ranges
我正在使用以下编译标志
-mcpu-cortex-r4f -march=armv7-r -mfloat-abi=softfp -mfpu=vfpv3-d16 -fdata-sections -ffunction-sections -std=gnu99
应该添加或删除什么以避免提到的符号
最佳答案
See the
strip
command. The general use isstrip -s filename
to(--strip-all)
symbols. Fordebug
symbolsstrip -S
.
– David C. Rankin 回答了这个问题在这个问题下的评论中。
关于c - 从目标文件中删除特定符号,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27184733/