以上是我的一个示例代码, 在汇编中调用了用C语言实现的函数, COFF格式的二进制文件默认会把C语言函数开头加一个下划线(_),ELF格式的却没有下划线, 有什么办法让生成的ELF格式的C语言函数也带有下划线的呢?
追加:
勾选了'Aid for transitioning hand-coded assembly from COFF to ELF'选项之后, _c_int5与vectors函数链接问题解决了, 但是出现了新的问题, 无法找到c_init00
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
以上是我的一个示例代码, 在汇编中调用了用C语言实现的函数, COFF格式的二进制文件默认会把C语言函数开头加一个下划线(_),ELF格式的却没有下划线, 有什么办法让生成的ELF格式的C语言函数也带有下划线的呢?
追加:
勾选了'Aid for transitioning hand-coded assembly from COFF to ELF'选项之后, _c_int5与vectors函数链接问题解决了, 但是出现了新的问题, 无法找到c_init00