[llvm-dev] FreeBSD notes for ELF2 LLD

Joerg Sonnenberger via llvm-dev llvm-dev at lists.llvm.org
Tue Oct 6 13:27:21 PDT 2015


On Tue, Oct 06, 2015 at 09:39:44AM -0400, Ed Maste via llvm-dev wrote:
> * PT_INTERP and ABI notes must be in the first page

This is a common requirement for many kernels and where it isn't, it
adds at least a non-significant penalty to not do so.

> * Undefined sym in shared library provided by regular object
> 
> This is the FreeBSD __progname issue fixed in r218259 for the original
> ELF linker.

Just for others, the problem here is that if the main binary defines a
symbol foo and any shared library it is linked against has a reference
to foo, it must be exported.

Joerg


More information about the llvm-dev mailing list