diff options
author | Rui Ueyama <ruiu@google.com> | 2015-10-14 19:21:25 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2015-10-14 19:21:25 +0000 |
commit | 4fcadaf5e747be3f00d45c9ae8a9ebd5c7ce6ac6 (patch) | |
tree | f3c71bbf95877d67a2915861d19125abb18304ea /llvm/lib | |
parent | a7f8f252647e414cbbfa84f542fae85d61757a55 (diff) | |
download | bcm5719-llvm-4fcadaf5e747be3f00d45c9ae8a9ebd5c7ce6ac6.tar.gz bcm5719-llvm-4fcadaf5e747be3f00d45c9ae8a9ebd5c7ce6ac6.zip |
ELF2: Merge .{text,rodata,data,bss}.* sections.
Previously, we used input section names as output section names.
That resulted that we created lots of sections for comdat
or -f{function,data}-section sections.
This patch reduces the number of sections by dropping suffix from
all section names which start with ".text.", ".rodata.", ".data."
or ".bss.". GNU linker does this using the internal linker script,
but for LLD I chose to do that directly.
Interestingly, this makes the linker faster. Time to link Clang
is this.
Before:
real 0m0.537s
user 0m0.433s
sys 0m0.104s
After:
real 0m0.390s
user 0m0.268s
sys 0m0.120s
It make sense because previously we created 57659 sections now only 27.
llvm-svn: 250315
Diffstat (limited to 'llvm/lib')
0 files changed, 0 insertions, 0 deletions