Fixed a typo in the section header type check.

This commit is contained in:
Andrew Briggs 2019-10-23 15:29:22 +01:00
parent fdc25113a1
commit 3f6ca95996

View file

@ -399,7 +399,7 @@ public class ElfHeader implements StructConverter, Writeable {
section, section.getOffset(), section.getAddress(), section.getSize(),
section.getEntrySize(), addendTypeReloc, symbolTable, sectionToBeRelocated));
}
else if (sectionHeaderType == ElfSectionHeaderConstants.SHT_ANDROID_RELA ||
else if (sectionHeaderType == ElfSectionHeaderConstants.SHT_ANDROID_REL ||
sectionHeaderType == ElfSectionHeaderConstants.SHT_ANDROID_RELA) {
for (ElfRelocationTable relocTable : relocationTableList) {