[lld] r259474 - ELF: Simplify and add comments.

Rafael EspĂ­ndola via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 2 13:07:07 PST 2016


> +    // We get here if a program was not compiled as PIC.
> +    if (canBePreempted(Body, /*NeedsGot=*/false)) {

I don't think the PIC/non-PIC distinction is correct. A reference to a
hidden symbol in a shared library cannot be preempted for example.


Cheers,
Rafael


More information about the llvm-commits mailing list