mirror of
https://github.com/rui314/mold.git
synced 2024-12-27 10:23:41 +03:00
wip
This commit is contained in:
parent
a52dc879c2
commit
34b2e8029b
@ -576,8 +576,10 @@ void InputSection::scan_relocations() {
|
||||
}
|
||||
|
||||
void InputSection::kill() {
|
||||
is_alive = false;
|
||||
for (FdeRecord &fde : fdes)
|
||||
fde.is_alive = false;
|
||||
file.sections[section_idx] = nullptr;
|
||||
if (is_alive.exchange(false)) {
|
||||
is_alive = false;
|
||||
for (FdeRecord &fde : fdes)
|
||||
fde.is_alive = false;
|
||||
file.sections[section_idx] = nullptr;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user