[LLVMdev] [lld] Undefined symbols postprocessing

Joerg Sonnenberger joerg at britannica.bec.de
Thu Feb 19 16:41:46 PST 2015


On Thu, Feb 19, 2015 at 01:58:59AM -0800, Denis Protivensky wrote:
> > Do you want to do that before or after dead code elimination?
> I think dead code elimination should be performed after all possible
> object code modifications done by lld. Therefore, it should be done
> after undefines' postprocessing as well.

How do you then make sure to not export redundant symbols? Consider
_GLOBAL_OFFSET_TABLE_ -- if the only user is in a dead function, it
should not be in the symbol table. Same for __tls_get_addr.

Joerg



More information about the llvm-dev mailing list