我如何让gcc为所有符号名称添加前缀 [英] How can I get gcc to add a prefix to all symbol names
本文介绍了我如何让gcc为所有符号名称添加前缀的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我知道在过去有一个选项 -fprefix-function-name
,它会为所有生成的符号添加一个前缀,它似乎不是部分的gcc了。有没有其他方法可以做到这一点?
我相信 简而言之,您可以使用<$ c'在现有库中'前缀'符号$ c> objcopy 像这样: objcopy --prefix-symbols = foo_ foo.o I know that in the past there was an option I believe this answer will give you the solution. In short, you can 'prefix' symbols in an existing library using objcopy --prefix-symbols=foo_ foo.o
这篇关于我如何让gcc为所有符号名称添加前缀的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
$ b
-fprefix-function-name
that would add a prefix to all generated symbols, it doesn't seem to be part of gcc anymore. Is there any other way to do this? 解决方案 objcopy
like this:
查看全文