forked from OSchip/llvm-project
parent
a8217afe16
commit
a85e8dda54
|
@ -590,7 +590,7 @@ void LinkerScript::process(BaseCommand &Base) {
|
|||
// It calculates and assigns the offsets for each section and also
|
||||
// updates the output section size.
|
||||
auto &Cmd = cast<InputSectionDescription>(Base);
|
||||
for (InputSectionBase *Sec : Cmd.Sections) {
|
||||
for (InputSection *Sec : Cmd.Sections) {
|
||||
// We tentatively added all synthetic sections at the beginning and removed
|
||||
// empty ones afterwards (because there is no way to know whether they were
|
||||
// going be empty or not other than actually running linker scripts.)
|
||||
|
@ -602,7 +602,7 @@ void LinkerScript::process(BaseCommand &Base) {
|
|||
if (!Sec->Live)
|
||||
continue;
|
||||
assert(CurOutSec == Sec->OutSec);
|
||||
output(cast<InputSection>(Sec));
|
||||
output(Sec);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue