However, this will let the linker know additional information about the function, including which TOC it is using, so it can emit the code to swap these around if necessary.
然而,这可以让链接器知道有关函数的其他信息,包括它使用的是哪个TOC,这样如果需要,就可以产生代码来在TOC之间进行切换了。
The dynamic linker can do a fair amount of work for each function linked, so most linkers are lazy.
动态链接器可以为每个被链接的函数做相当多的工作,所以大部分链接器都是不积极的。
You use.type to tell the linker that this value should be used as a function, and you use.global to tell the linker that this symbol can be referenced outside of the current file when linking.
type用来告诉链接器该值应该被用作函数,而. global则用来告诉链接器该符号在链接时可以在当前文件之外被引用。
应用推荐