This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: RFC: Add tests for namespace for static linking
- From: Florian Weimer <fweimer at redhat dot com>
- To: Joseph Myers <joseph at codesourcery dot com>, libc-alpha at sourceware dot org
- Date: Wed, 12 Nov 2014 18:06:50 +0100
- Subject: Re: RFC: Add tests for namespace for static linking
- Authentication-results: sourceware.org; auth=none
- References: <alpine dot DEB dot 2 dot 10 dot 1411080147420 dot 16602 at digraph dot polyomino dot org dot uk>
On 11/08/2014 02:49 AM, Joseph Myers wrote:
One thing we currently try to ensure manually is that glibc is
namespace-clean for static linking; that is, if you only use features
from a particular standard (including the set of features exposed by
headers given feature test macros such as _DEFAULT_SOURCE that don't
correspond to any written standard), the library objects brought in by
the static linker will not define or use (strong) names that are
reserved to the user in that standard.
Why isn't there a generic, linker-based fix which reuses the tagging we
have for the dynamic linking case? Because we want to keep object file
boundaries?
--
Florian Weimer / Red Hat Product Security