mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-07-22 09:29:31 +00:00
Remove unnecessary code.
We were locating the dynamic string table via both the section and segment headers. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242674 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f799b25cfc
commit
3c7642e230
@ -650,15 +650,6 @@ ELFFile<ELFT>::ELFFile(StringRef Object, std::error_code &EC)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
DotDynSymSec = &Sec;
|
DotDynSymSec = &Sec;
|
||||||
ErrorOr<const Elf_Shdr *> SectionOrErr = getSection(Sec.sh_link);
|
|
||||||
if ((EC = SectionOrErr.getError()))
|
|
||||||
return;
|
|
||||||
ErrorOr<StringRef> SymtabOrErr = getStringTable(*SectionOrErr);
|
|
||||||
if ((EC = SymtabOrErr.getError()))
|
|
||||||
return;
|
|
||||||
DynStrRegion.Addr = SymtabOrErr->data();
|
|
||||||
DynStrRegion.Size = SymtabOrErr->size();
|
|
||||||
DynStrRegion.EntSize = 1;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case ELF::SHT_DYNAMIC:
|
case ELF::SHT_DYNAMIC:
|
||||||
|
Loading…
Reference in New Issue
Block a user