search for: adddefaultatom

Displaying 1 result from an estimated 1 matches for "adddefaultatom".

Did you mean: adddefaultatoms
2015 Feb 18
6
[LLVMdev] [lld] Undefined symbols postprocessing
...In lld, I need to conditionally add symbols (like GLOBAL_OFFSET_TABLE) during static linking because they may be used by relocations (R_ARM_TLS_IE32) or by some other stuff like STT_GNU_IFUNC symbols. The problem is that now symbols are added in a declarative way by specifying in ExecutableWriter::addDefaultAtoms() override. At that stage, there's no way to determine if additional symbols are required. But libraries providing optimizations like STT_GNU_IFUNC (glibc, for example) expect the GOT symbol to be defined, so the linking process fails in Resolver::resolve() if the symbol is not found. I pro...