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

Peter Collingbourne via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 7 09:46:55 PST 2016


Can you show me the code in question? It may be that this is a bug in your
code.

Peter


On Dec 7, 2016 9:36 AM, "Petr Hosek via Phabricator" <
reviews at reviews.llvm.org> wrote:

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161207/7f580a0a/attachment.html>


More information about the llvm-commits mailing list