且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

无法在macOS Sierra上将程序集文件(.s)与GCC链接

更新时间:2023-11-10 18:28:28

也许将您的全局名称更改为gcc正在寻找的名称?

Maybe change your global to the name gcc is looking for?

.globl _work;

_work :
       ...

还有其他方法:

https://montcs.bloomu.edu/~bobmon/Code/Asm.and.C/C-asm/Asm-C-example0.shtml

< =不同的编译器,相同的原理...

<= Different compiler, same principles...