[lld] r267323 - ELF: Simplify preemption logic. Do not include weak undefined symbols in non-DSOs.

Rafael EspĂ­ndola via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 24 15:44:34 PDT 2016


> -  // -Bsymbolic means that not even default visibility symbols can be preempted.
> -  if ((Config->Bsymbolic || (Config->BsymbolicFunctions && isFunc())) &&
> -      isDefined())
> +  // Only symbols that appear in dynsym can be preempted.
> +  if (!Backref->includeInDynsym())
>      return false;

I really like the idea of using includeInDynsym in here!

Thanks,
Rafael


More information about the llvm-commits mailing list