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

Joerg Sonnenberger via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 11 11:36:06 PDT 2015


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


More information about the llvm-commits mailing list