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: [PATCH][BZ #16046] Static dlopen correction fallout fixes


On Tue, 4 Aug 2015, Andreas Schwab wrote:

> > Index: glibc-fsf-trunk-quilt/elf/dl-support.c
> > ===================================================================
> > --- glibc-fsf-trunk-quilt.orig/elf/dl-support.c	2014-01-29 11:23:16.000000000 +0000
> > +++ glibc-fsf-trunk-quilt/elf/dl-support.c	2014-01-29 12:12:22.092011006 +0000
> > @@ -91,6 +91,7 @@ static struct link_map _dl_main_map =
> >      .l_scope = _dl_main_map.l_scope_mem,
> >      .l_local_scope = { &_dl_main_map.l_searchlist },
> >      .l_used = 1,
> > +    .l_flags_1 = DF_1_NODEFLIB,
> >      .l_tls_offset = NO_TLS_OFFSET,
> >      .l_serial = 1,
> >    };
> 
> Why is that needed?

 As per the commit message this removes the need for special cases for 
static executables in elf/dl-load.c removed with the same commit 
(0d23a5c1), while preserving the semantics.  Previously the main static 
executable was treated as always having DF_1_NODEFLIB set as the check for 
`l' being non-NULL excluded the conditional in elf/dl-load.c from being 
executed.

 What problem are you seeing or trying to solve?

  Maciej


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