diff options
author | Rich Felker <dalias@aerifal.cx> | 2015-11-04 13:24:11 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2015-11-04 13:24:11 -0500 |
commit | 27c1eccf33ce5cb7508ef5e541daa9b6441b4a51 (patch) | |
tree | eadb554613354f715d267b2af4ac075365ee063c /src/setjmp/mips | |
parent | 2f1d1f1ec538c4fa9b62358cf0d3dba5e646a572 (diff) | |
download | musl-27c1eccf33ce5cb7508ef5e541daa9b6441b4a51.tar.gz |
have configure check/add -ffunction-sections and -fdata-sections
based on patch by Denys Vlasenko. the original intent for using these
options was to enable linking optimizations. these are immediately
available for static linking applications to libc.a, and will also be
used for linking libc.so in a subsequent commit.
in addition to the original motives, this change works around a whole
class of toolchain bugs where the compiler generates relative address
expressions using a weak symbol and the assembler "optimizes out" the
relocation which should result by using the weak definition. (see gas
pr 18561 and gcc pr 66609, 68178, etc. for examples.) by having
different functions and data objects in their own sections, all
relative address expressions are cross-section and thus cannot be
resolved to constants until link time. this allows us to retain
support for affected compiler/assembler versions without invasive
and fragile source-level workarounds.
Diffstat (limited to 'src/setjmp/mips')
0 files changed, 0 insertions, 0 deletions