svn commit: r361657 - head/sys/sys

Ed Maste emaste at freebsd.org
Sat May 30 23:29:09 UTC 2020


On Sat, 30 May 2020 at 16:17, Ed Maste <emaste at freebsd.org> wrote:
>
> On Sat, 30 May 2020 at 16:14, Konstantin Belousov <kostikbel at gmail.com> wrote:
> >
> > On Sat, May 30, 2020 at 07:57:27PM +0000, Ed Maste wrote:
> > > Author: emaste
> > > Date: Sat May 30 19:57:26 2020
> > > New Revision: 361657
> > > URL: https://svnweb.freebsd.org/changeset/base/361657
> > >
> > > Log:
> > >   elf_common.h: define DF_1_PIE
> > >
> > >   DF_1_PIE indicates that the object is a position-independent executable.
> > Only on Solaris.
>
> Apparently GNU ld sets it broadly now, and there's a patch to have lld
> start doing it: https://reviews.llvm.org/D80872

It looks like GNU ld has done it since 2015 in fact. Further, glibc
will refuse to dlopen() an object with DF_1_PIE set, as of last June;
this seems like it would be a reasonable thing for us to do too.

glibc bug for this: https://sourceware.org/bugzilla/show_bug.cgi?id=24323


More information about the svn-src-all mailing list