proc/elf: fix aarch64 relocations
This commit is contained in:
parent
0a2d2ea4db
commit
ffeb4522c9
@ -400,7 +400,7 @@ fn write_rela(rela: &Rela, space: &ProcessAddressSpace, b: usize) -> Result<(),
|
||||
let rel_field = rela.r_offset as usize + b;
|
||||
|
||||
let (value, width) = match rela.r_type {
|
||||
elf::abi::R_X86_64_RELATIVE => {
|
||||
elf::abi::R_X86_64_RELATIVE | elf::abi::R_AARCH64_RELATIVE => {
|
||||
// B + A
|
||||
// Width: qword
|
||||
(b as i64 + a, 8)
|
||||
|
Loading…
x
Reference in New Issue
Block a user