【问题标题】:What does the "compiler option" -auxbase-strip do?“编译器选项” -auxbase-strip 有什么作用?
【发布时间】:2016-09-20 14:10:47
【问题描述】:
我刚刚使用编译器选项“-frecord-gcc-switches”编译了代码,以查看编译器自动选择了哪些选项。现在我可以在.GCC.command.line 部分看到选项。有几个合理的编译器选项,但也有一个我找不到任何文档。 -auxbase-strip png.o 是什么意思。显然它对 png.o 做了一些事情,但它到底做了什么?
【问题讨论】:
标签:
gcc
compilation
compiler-optimization
elf
【解决方案1】:
谷歌搜索shows:
Hei Chan:
I am trying to find the document for auxbase and auxbase-strip,
but I can't find any.
Ian Lance Taylor:
They are internal options used to support the -fcompare-debug options.
They are not intended to be used by end users.
所以,如果你真的想知道这个选项的作用,你需要阅读 GCC 源代码(但你不应该关心)。