forked from OSchip/llvm-project
parent
3ae28a4758
commit
231b5e23c5
|
@ -356,11 +356,9 @@ void Writer<ELFT>::scanRelocs(
|
|||
}
|
||||
|
||||
template <class ELFT> void Writer<ELFT>::scanRelocs(InputSection<ELFT> &C) {
|
||||
if (!(C.getSectionHdr()->sh_flags & SHF_ALLOC))
|
||||
return;
|
||||
|
||||
for (const Elf_Shdr *RelSec : C.RelocSections)
|
||||
scanRelocs(C, *RelSec);
|
||||
if (C.getSectionHdr()->sh_flags & SHF_ALLOC)
|
||||
for (const Elf_Shdr *RelSec : C.RelocSections)
|
||||
scanRelocs(C, *RelSec);
|
||||
}
|
||||
|
||||
template <class ELFT>
|
||||
|
|
Loading…
Reference in New Issue