[PATCH] D13637: ELF2: Fix BSD's __progname symbol issue.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 11 11:39:24 PDT 2015


Why COPY relocation is related to this?

On Sun, Oct 11, 2015 at 11:36 AM, Joerg Sonnenberger <
joerg at britannica.bec.de> wrote:

> On Sun, Oct 11, 2015 at 05:37:29PM +0000, Rui Ueyama via llvm-commits
> wrote:
> > ruiu created this revision.
> > ruiu added reviewers: rafael, emaste.
> > ruiu added a subscriber: llvm-commits.
> >
> > BSD's DSO files have undefined symbol "__progname" which is defined in
> crt1.o.
> > On that system, both user programs and system shared libraries depend on
> each
> > other. We need to put symbols defined by user programs which are
> referenced
> > by shared libraries to user program's .dynsym.
>
> This is just one example. libwrap triggers the same behavior on other
> platforms too. Can you include a test that a COPY relocation is created
> or at least a comment that it is missing.
>
> Joerg
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151011/0b306ee1/attachment.html>


More information about the llvm-commits mailing list