This is the mail archive of the 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: Implement static dl_iterate_phdr

On Tue, Oct 14, 2003 at 06:20:36AM +0200, Jakub Jelinek wrote:
> On Mon, Oct 13, 2003 at 04:49:11PM -0700, H. J. Lu wrote:
> > On Mon, Oct 13, 2003 at 04:41:04PM -0700, Ulrich Drepper wrote:
> > > Hash: SHA1
> > > 
> > > H. J. Lu wrote:
> > > 
> > > > I was asked why dl_iterate_phdr didn't work on static binaries for
> > > > IA32. I don't see why it shouldn't work.
> > > 
> > > The little bit of dynamic linking functionality which is needed in
> > > statically linked applications works.  More isn't needed.
> > > 
> > 
> > Why is there a static dl_iterate_phdr at all? It links, but doesn't
> It is needed on IA-64 for libgcc EH.
> It is not needed on other arches.

IA-64 doesn't use the dummy static dl_iterate_phdr. Why isn't
sysdeps/generic/dl-iteratephdr-static.c an empty file? To go one
step further, why do other arches need dl_iterate_phdr for dynamic
binaries? Why not make dl_iterate_phdr an IA-64 only function?

BTW, my user finds dl_iterate_phdr useful on other arches, but it is
kind of useless when it only works with dynamic binaries.


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