We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ae6b53 commit 9c9530eCopy full SHA for 9c9530e
libr/bin/format/elf/elf.c
@@ -1702,8 +1702,8 @@ static ut64 get_import_addr_arm64(ELFOBJ *eo, RBinElfReloc *rel) {
1702
1703
switch (rel->type) {
1704
case R_AARCH64_RELATIVE:
1705
- R_LOG_WARN ("Unsupported arm64 relocation type for imports %d", rel->type);
1706
- return UT64_MAX;
+ // Direct binding: adjust by program base for relative relocations.
+ return eo->baddr + rel->addend;
1707
case R_AARCH64_IRELATIVE:
1708
if (rel->addend > plt_addr) { // start
1709
return (plt_addr + pos * 16 + 32) + rel->addend;
0 commit comments