about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-12-24 20:20:01 -0800
committerAlex Crichton <alex@alexcrichton.com>2014-12-24 20:20:01 -0800
commit58d808f9889882121475457e30f127db4b09a09b (patch)
tree3e8df0ff7d40f50d1e1d9ed40a2c28dc0622e33f /src/libstd/sys/unix/stack_overflow.rs
parent7e11b22713aebd28ceaaa2ecef937c9b9d247c2f (diff)
downloadrust-58d808f9889882121475457e30f127db4b09a09b.tar.gz
rust-58d808f9889882121475457e30f127db4b09a09b.zip
mk: Build jemalloc with -ffunction-sections
It's quite possible that small programs don't use all of jemalloc, and building
with -ffunction-sections and -fdata-sections allows the linker (via
--gc-sections) to strip out all unused code at link time. This decreases the
size of a "hello world" executable for me from 716K to 482K with no measurable
impact on link time. After this patch jemalloc is still the largest portion of
our hello world executables, but this helps cut down on the size at least
somewhat!
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions