mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@libc.org>
To: musl@lists.openwall.com
Subject: Summary of recent changes, ssp-libc support!
Date: Mon, 13 Apr 2015 20:38:50 -0400	[thread overview]
Message-ID: <20150414003850.GA5920@brightrain.aerifal.cx> (raw)

There've been a series of big changes in musl over the past few days.
Big in impact, that is; actually, the diffs ended up being a lot
smaller than I expected.

1. The dynamic linker has dropped a lot of assumptions; see the
   "Dynamic linker changes" mail thread for details, along with commit
   f3ddd173806fd5c60b3f034528ca24542aecc5b9.

2. Support for running without a thread pointer has been fully
   removed, completing phase 3 of the "Transition path for removing
   lazy init of thread pointer" project laid out during the 1.1.0
   release cycle. This removes a good bit of cruft/bloat. Removal was
   in commit 19a1fe670acb3ab9ead0fe31859ca7d4fe40dd54; the work that
   made it possible was in commit
   71f099cb7db821c51d8f39dfac622c61e54d794c and those leading up to
   it, including the dynamic linker work (see 1 above).

3. Building libc itself with stack protector is now possible! This was
   one of the big motivations for the above changes. Commit
   1ef849c6ec6a4e30badc844371cdf1b9eedfba57 put on the finishing
   touches, but it was really items 1 and 2 above that made it
   possible.

Some future developments that could be built upon the above:

- Official, clean arch-agnostic support for static-PIE binaries.
- Eliminating the need for -Bsymbolic-functions.
- Possibly supporting symbol interposition in front of libc symbols.

Right now the net size difference for libc.so is a slight increase,
but I'm working on a setup for (optionally, if the compiler supports
it) building libc.so with protected visibility, which gives a
significant size reduction and speed increase.

Rich


                 reply	other threads:[~2015-04-14  0:38 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20150414003850.GA5920@brightrain.aerifal.cx \
    --to=dalias@libc.org \
    --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).