[patch] Dead-strip binaries by default on OS X and posix (was: Reduce size of clang-format by 87% on OS X)

Joerg Sonnenberger joerg at britannica.bec.de
Thu Jan 2 06:45:22 PST 2014

On Fri, Dec 27, 2013 at 02:04:10PM -0800, Eric Christopher wrote:
> On Fri, Dec 27, 2013 at 2:01 PM, Joerg Sonnenberger
> <joerg at britannica.bec.de> wrote:
> > On Fri, Dec 27, 2013 at 11:12:40AM -0800, Nico Weber wrote:
> >> Something like the attached patch? (Make-only again, but now including the
> >> linux bits. If folks like it, I can do the cmake part as a followup.)
> >
> > Does it get applied for shared libraries? I don't think it makes sense
> > in that situation.
> >
> These have export lists etc.

I mean: building the shared library code with -ffunction-section
-fdata-section is just going to blow up the object files at best and
make the linker slower. It's not really about exporting symbols.


More information about the cfe-commits mailing list