[PATCH] D12226: [LLD] Support for --unresolved-symbols option in llvm lld for ELF file format

Joerg Sonnenberger via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 14 07:13:17 PDT 2015


On Mon, Sep 14, 2015 at 03:56:21PM +0530, shridHar joshi via llvm-commits wrote:
> in case of gnu ld and gold, allow shlib undefined is false (default) while
> creating executable and true while creating shared library (-shared option).

That still requires the linker to at least do the full symbol search
mandated by ELF, which lld still is missing. As such, the false positive
rate for lld would be completely unacceptable.

I'm not sure if the bfd or gold behavior is correct here, I can
certainly think of situations where it is plainly wrong.

Joerg


More information about the llvm-commits mailing list