[PATCH] D26133: [ELF] Allow relative relocations to absolute symbols in PIC

Petr Hosek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 7 09:36:03 PST 2016


phosek added a comment.

We run into this issue again in our codebase when linking the C library (based on musl) with lld. I've reduced that case into a new test case which I've added to the patch. While the solution that Ian suggested may be the "right thing", it's clearly not what BFD ld nor gold implement and it's unlikely that their implementation is going to change. Since there is code out there relying on this behavior, it'd be useful for lld to support it.


Repository:
  rL LLVM

https://reviews.llvm.org/D26133





More information about the llvm-commits mailing list