rename a symbol using a linker script

别来无恙 提交于 2019-12-02 01:55:56

You cannot really rename symbols, but you can define aliases to existing symbols like

PROVIDE(c_function = C_function_);
...

in a linker script.

If you pass this linker script with the -T option to ld, it will replace the original (default) linker script. If you rather want to have the linker script extend the default, pass it without the -T option (just like you would with an additional object file).

This way, everything should work as expected.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!