Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 May 2020 19:28:55 -0400
From:      Ed Maste <emaste@freebsd.org>
To:        Konstantin Belousov <kostikbel@gmail.com>
Cc:        src-committers <src-committers@freebsd.org>, svn-src-all <svn-src-all@freebsd.org>,  svn-src-head <svn-src-head@freebsd.org>
Subject:   Re: svn commit: r361657 - head/sys/sys
Message-ID:  <CAPyFy2D8%2BUXpS4pxbC26QN62dwTRL3tmpzmb8n2hQk3P1U7f0w@mail.gmail.com>
In-Reply-To: <CAPyFy2A8=-%2BQ3kgDbh5sjq1P32gRCmgJQbMwqNoC=0cxwgf2RQ@mail.gmail.com>
References:  <202005301957.04UJvRkb020021@repo.freebsd.org> <20200530201405.GL48478@kib.kiev.ua> <CAPyFy2A8=-%2BQ3kgDbh5sjq1P32gRCmgJQbMwqNoC=0cxwgf2RQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 30 May 2020 at 16:17, Ed Maste <emaste@freebsd.org> wrote:
>
> On Sat, 30 May 2020 at 16:14, Konstantin Belousov <kostikbel@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAPyFy2D8%2BUXpS4pxbC26QN62dwTRL3tmpzmb8n2hQk3P1U7f0w>