Add proper number of stubs for ARM JUMP24 relocations.
Change-Id: I6a5bd75db9d76230aab72350d90bcf8c045e0092
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 @@
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;
}
}