diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2021-10-29 10:29:54 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2021-11-02 11:21:57 -0300 |
commit | f64f4ce069300f33e26b025ebb0233d5ca3957a5 (patch) | |
tree | 5605ff671279a79dad283537ffb134c62208010d /nptl/pthread_attr_getstack.c | |
parent | cca75bd8b53b82d80299b03b368355b158832c9a (diff) | |
download | glibc-f64f4ce069300f33e26b025ebb0233d5ca3957a5.tar glibc-f64f4ce069300f33e26b025ebb0233d5ca3957a5.tar.gz glibc-f64f4ce069300f33e26b025ebb0233d5ca3957a5.tar.bz2 glibc-f64f4ce069300f33e26b025ebb0233d5ca3957a5.zip |
elf: Assume disjointed .rela.dyn and .rela.plt for loader
The patch removes the the ELF_DURING_STARTUP optimization and assume
both .rel.dyn and .rel.plt might not be subsequent. This allows some
code simplification since relocation will be handled independently
where it is done on bootstrap.
At least on x86_64_64, I can not measure any performance implications.
Running 10000 time the command
LD_DEBUG=statistics ./elf/ld.so ./libc.so
And filtering the "total startup time in dynamic loader" result,
the geometric mean is:
patched master
Ryzen 7 5900x 24140 24952
i7-4510U 45957 45982
(The results do show some variation, I did not make any statistical
analysis).
It also allows build arm with lld, since it inserts ".ARM.exidx"
between ".rel.dyn" and ".rel.plt" for the loader.
Checked on x86_64-linux-gnu and arm-linux-gnueabihf.
Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
Diffstat (limited to 'nptl/pthread_attr_getstack.c')
0 files changed, 0 insertions, 0 deletions