parent
8f2996fbdf
commit
925529b821
|
@ -1390,8 +1390,8 @@ static void removeUnusedSyntheticSections() {
|
|||
llvm::erase_if(ISD->Sections,
|
||||
[=](InputSection *IS) { return IS == SS; });
|
||||
|
||||
// If there are no other alive sections or commands left in the output
|
||||
// section description, we remove it from the output.
|
||||
// If there are no other alive input sections left, we remove output
|
||||
// section from the output.
|
||||
if (getInputSections(OS).empty())
|
||||
OS->Live = false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue