[lld] [llvm] IRSymTab: Record _GLOBAL_OFFSET_TABLE_ for ELF x86 (PR #89463)

via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 23 14:53:58 PDT 2024


pcc wrote:

Okay, that makes sense. `LTO::getRuntimeLibcallSymbols()` should be used for symbols that are "always" potentially used. We could extend that notion to "always potentially used on a given architecture" by passing in an architecture (which the linker knows), but the linker doesn't know the code model. So adding it to the bitcode symbol table seems fine to me.

https://github.com/llvm/llvm-project/pull/89463


More information about the llvm-commits mailing list