parent
3054ecea3f
commit
367bfce611
|
@ -843,9 +843,9 @@ void LinkerScript::adjustSectionsAfterSorting() {
|
|||
// PHDRS { seg PT_LOAD; }
|
||||
// SECTIONS { .aaa : { *(.aaa) } }
|
||||
std::vector<StringRef> DefPhdrs;
|
||||
auto FirstPtLoad =
|
||||
std::find_if(PhdrsCommands.begin(), PhdrsCommands.end(),
|
||||
[](const PhdrsCommand &Cmd) { return Cmd.Type == PT_LOAD; });
|
||||
auto FirstPtLoad = llvm::find_if(PhdrsCommands, [](const PhdrsCommand &Cmd) {
|
||||
return Cmd.Type == PT_LOAD;
|
||||
});
|
||||
if (FirstPtLoad != PhdrsCommands.end())
|
||||
DefPhdrs.push_back(FirstPtLoad->Name);
|
||||
|
||||
|
|
Loading…
Reference in New Issue