This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFC: Add --enable-static-pie to build static executables as PIE


On Tue, Jul 18, 2017 at 04:21:29PM +0100, Szabolcs Nagy wrote:
> On 18/07/17 14:48, Alan Modra wrote:
> > On Tue, Jul 18, 2017 at 05:30:48AM -0700, H.J. Lu wrote:
> >> On Mon, Jul 17, 2017 at 9:25 PM, Alan Modra <amodra@gmail.com> wrote:
> >> Linker needs to support --no-dynamic-linker.
> > 
> > Is there really much to be gained from PIEs that don't use ld.so
> > versus those that do?
> > 
> 
> in glibc ld.so in principle only works with one particular
> version of glibc, you cannot move a static linked pie binary
> to another system if it has ld.so dependency.

That is persuasive, if true.  How does the dependency arise if the
only reference to ld.so is via PT_INTERP?

-- 
Alan Modra
Australia Development Lab, IBM


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]