1
1
mirror of https://github.com/rui314/mold.git synced 2024-12-28 19:04:27 +03:00
This commit is contained in:
Rui Ueyama 2021-03-14 21:09:47 +09:00
parent 1028d7934b
commit 863a173a0b

View File

@ -649,6 +649,8 @@ void DynsymSection::add_symbol(Symbol *sym) {
}
void DynsymSection::sort_symbols() {
Timer t("sort_dynsyms");
// In any ELF file, local symbols should precede global symbols.
auto first_global = std::stable_partition(
symbols.begin() + 1, symbols.end(),