search for: executablewriter

Displaying 3 results from an estimated 3 matches for "executablewriter".

2015 Feb 18
6
[LLVMdev] [lld] Undefined symbols postprocessing
Hi everyone, 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 n...
2015 Feb 25
2
[LLVMdev] [lld] Undefined symbols postprocessing
...execution and then check if some undefines left (as I originally planned). This sounds reasonable as in any case we must have all undefines resolved in order to continue the linking process. Concerning the implementation, why not to add this virtual archive file to the OutputELFWriter (or even to ExecutableWriter) since we already have a method to add specific files to the linking process? We may then expose a simple interface to the descendants of the writers to give chance to handle undefines. Also, do we need this special symbol handling for any cases other than static linking of the executable? - Deni...
2015 Feb 23
2
[LLVMdev] [lld] Undefined symbols postprocessing
On Thu, Feb 19, 2015 at 10:40 PM, Denis Protivensky <dprotivensky at accesssoftek.com> wrote: > Shankar, > > Okay, I guessed the correct interface. > But what about the moment at which the function is called? > If it's called from Resolver::resolve(), it doesn't make any difference to > me as I cannot determine the need of specific symbols at that time. > > -