1
1
mirror of https://github.com/rui314/mold.git synced 2024-12-27 10:23:41 +03:00
This commit is contained in:
Rui Ueyama 2021-03-09 00:23:06 +09:00
parent 5204744931
commit 404a2cd417

View File

@ -102,6 +102,10 @@ static tbb::concurrent_vector<InputSection *> collect_root_set() {
// Add sections referenced by root symbols.
enqueue(Symbol::intern(config.entry)->input_section);
for (std::string_view name : config.undefined)
if (InputSection *sec = Symbol::intern(config.entry)->input_section)
enqueue(sec);
// .eh_frame consists of variable-length records called CIE and FDE
// records, and they are a unit of inclusion or exclusion.
// We just keep all CIEs and everything that are referenced by them.