[PATCH] D13244: [ELF2] - implemented --allow-shlib-undefined/--no-allow-shlib-undefined

Rafael EspĂ­ndola via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 29 13:04:19 PDT 2015


On 29 September 2015 at 12:09, Rui Ueyama <ruiu at google.com> wrote:
> ruiu added a comment.
>
> The GNU linker's behavior of trying to resolve all undefined symbols in DSOs looks broken in the first place. This is a linker and not a dynamic linker nor loader, it can just leave undefined symbols in DSO for the dynamic linker. LLVM itself, for example, always sets --allow-shlib-undefined to "[W]ork around a broken bfd ld behavior" (CMakeList.txt in the toplevel directory). In my opinion, we should just implement --allow-shlib-undefined behavior as default and ignore that option.

Yes, lets please do that.

Cheers,
Rafael


More information about the llvm-commits mailing list