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 #5784: Build libpthread.a with ld -r


On Wed, 5 Sep 2012, Mike Frysinger wrote:

> On Wed, Sep 5, 2012 at 7:50 PM, Joseph S. Myers wrote:
> > On Wed, 5 Sep 2012, Mike Frysinger wrote:
> >> `mktemp' is dangerous, better use `mkstemp' or `mkdtemp'
> >
> > It should be possible to fix this sort of static linking issue by defining
> > internal-use aliases and using them instead of directly using the symbols
> > with such warnings.  The alias would in this case only need to be defined
> > / used for static linking, though it might be simpler to export it from
> > shared libc as GLIBC_PRIVATE and use it unconditionally.
> 
> that is part of the issue.  the fact the entire code base is always
> linked in (adding up to 100K of dead code) is also bad.

I'm not aware of any other approach having been proposed for fixing this 
bug, but I'm sure an analysis of the existing issues with static linking 
with libpthread, and why linking with only part of it doesn't work, along 
with proposals for how to fix this, would be welcome.

-- 
Joseph S. Myers
joseph@codesourcery.com


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