链接器将认可全局符号的定义而忽略弱符号的定义。
The link editor honors the global definition and ignores the weak ones.
弱符号类似于全局符号,但是弱符号的定义的优先级比较低一些。
STB_WEAK Weak symbols resemble global symbols, but their definitions have lower precedence.
一种全局符号定义,它不能被与定义该全局符号的模块相链接的其它模块直接引用。
The definition of a global symbol that is not explicitly available for reference by modules linked with the module in which the definition occurs.
应用推荐