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, 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.
-mike


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