diff options
-rw-r--r-- | include/impl/ELFSectionRelTable.hxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/impl/ELFSectionRelTable.hxx b/include/impl/ELFSectionRelTable.hxx index d5d04a2..c6c4dde 100644 --- a/include/impl/ELFSectionRelTable.hxx +++ b/include/impl/ELFSectionRelTable.hxx @@ -98,9 +98,13 @@ getMaxNumStubs(ELFObjectTy const *obj) const { for (size_t i = 0; i < size(); ++i) { ELFRelocTy *rel = table[i]; - if (rel->getType() == R_ARM_CALL || - rel->getType() == R_ARM_THM_CALL) { + switch (rel->getType()) { + case R_ARM_CALL: + case R_ARM_THM_CALL: + case R_ARM_JUMP24: + case R_ARM_THM_JUMP24: sym_index_set.insert(rel->getSymTabIndex()); + break; } } |