From: Rich Felker <dalias@aerifal.cx>
To: musl@lists.openwall.com
Subject: Re: libc.so symbols that are not reserved
Date: Mon, 11 Nov 2013 21:55:40 -0500 [thread overview]
Message-ID: <20131112025540.GN24286@brightrain.aerifal.cx> (raw)
In-Reply-To: <20131112013946.GP1685@port70.net>
On Tue, Nov 12, 2013 at 02:39:47AM +0100, Szabolcs Nagy wrote:
> i filtered nm -D libc.so for posix name space violations
> and compared the results (weak symbols were omitted), some
> of these should be fixed
I'm unclear on why you consider them violations. They do not conflict
with symbols in the application or in third-party libraries. This can
easily be verified. Basically, symbols in shared libraries always act
like weak symbols would in static linking (this may be a poor
approximation of the reality, but it's close enough to be a useful way
of thinking about it).
What would in principle be problematic is if standard C or POSIX
functions in libc depended on any of these symbols, since an
application could interpose unrelated functionality with the same
name. In practice that doesn't matter for dynamic linking since
-Bsymbolic is used, but it would matter for static linking of course.
As far as I know musl has no such issues (except for treating dup3,
pipe2, etc. as if they were in POSIX since they will be in the next
issue; if you object to that I'm not opposed to adding __-prefixed
versions).
Rich
next prev parent reply other threads:[~2013-11-12 2:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-12 1:39 Szabolcs Nagy
2013-11-12 2:55 ` Rich Felker [this message]
2013-11-12 4:07 ` Szabolcs Nagy
2013-11-12 4:41 ` Rich Felker
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20131112025540.GN24286@brightrain.aerifal.cx \
--to=dalias@aerifal.cx \
--cc=musl@lists.openwall.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).