On Sun, 15 Sep 2013 19:30:01 -0700
Tim Kientzle <kient...@freebsd.org> wrote:

> 
> On Sep 15, 2013, at 2:24 PM, Ed Schouten <e...@80386.nl> wrote:
> > GCC and Clang support the -ffunction-sections and -fdata-sections
> > flags. Essentially, these flags force the compiler to put every
> > function and variable in its own section. Though this will blow up
> > the
> ….
> > - devd suddenly becomes 500 KB in size, instead of a megabyte,
> > - init's size drops from 900 KB to 600 KB,
> 
> Can you figure out what functions are getting omitted
> when you make this change?

You can add "-Wl,--print-gc-sections" to LDFLAGS to print which sections
the linker is removing.

Andrew
_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Reply via email to