gpt4 book ai didi

c - 从目标文件中删除特定符号

转载 作者:行者123 更新时间:2023-11-30 17:24:50 24 4
gpt4 key购买 nike

我想从使用 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 is strip -s filename to (--strip-all) symbols. For debug symbols strip -S.

David C. Rankin 回答了这个问题在这个问题下的评论中。

关于c - 从目标文件中删除特定符号,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27184733/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com