mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-13 00:11:56 +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;
|
||||
}
|
||||
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;
|
||||
}
|
||||
case ELF::SHT_DYNAMIC:
|
||||
|
Loading…
x
Reference in New Issue
Block a user