mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Jon Chesterfield <jonathanchesterfield@gmail.com>
To: musl@lists.openwall.com
Subject: libc.so, Bsymbolic no longer necessary?
Date: Mon, 2 Dec 2019 08:23:27 +0400	[thread overview]
Message-ID: <CAOUYtQBsRrqx5xJ+ipoFy_AkW+7t3DSZAijWV+w+0fVLWu8uQQ@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 529 bytes --]

Hey,

The early design notes for musl mention linking with Bsymbolic, which
seemed reasonable. I don't see that in the current Makefile, or the
equivalent protected visibility.

This seems to suggest that LD_PRELOAD can override calls to libc from
within libc. That seems dubious. Is there a use case for this? Or is it
avoided by the control flow in the loader itself?

I'm thinking of building the musl loader/libc elf with protected visibility
on the exported symbols and wondered whether I'm missing something.

Thanks,

Jon

[-- Attachment #2: Type: text/html, Size: 794 bytes --]

             reply	other threads:[~2019-12-02  4:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-02  4:23 Jon Chesterfield [this message]
2019-12-02  4:39 ` Fangrui Song
2019-12-02  4:44   ` Jon Chesterfield

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=CAOUYtQBsRrqx5xJ+ipoFy_AkW+7t3DSZAijWV+w+0fVLWu8uQQ@mail.gmail.com \
    --to=jonathanchesterfield@gmail.com \
    --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).