多个文件在编译时是怎样生成符号表的( 二 )

也是面向单个文件的。
最后由GNU binutils的ld或LLVM的lld在链接时
00000000 \u0026lt;foo\u0026gt;: ... 14: 0e 94 00 00 call 0 ; bar符号的地址未知 ... 30: 08 95 ret将bar符号的地址Relocation:
00000000 \u0026lt;foo\u0026gt;: ... 14: 0e 94 1a 00 call 0x34 ; 0x34 \u0026lt;bar\u0026gt; Relocation之 ... 30: 08 95 ret00000034 \u0026lt;bar\u0026gt;: ; bar符号的地址已知 ... 38: 08 95 ret题主鼓捣一下LLVM工具链的lld ? D32991 Initial migration of AVR target 就能理解Symbol Relocation了 Relocation
【多个文件在编译时是怎样生成符号表的】 以上 :)


推荐阅读