dyn-loader: fix R_AARCH64_ABS64 missing addend
This commit is contained in:
parent
588e9e2936
commit
2e769df015
@ -93,8 +93,12 @@ impl Relocation for Rela {
|
||||
todo!()
|
||||
}
|
||||
match self.r_type {
|
||||
// Direct 64 bit: S + A
|
||||
R_AARCH64_ABS64 => {
|
||||
Ok(Some(RelaValue::QWord(s + self.r_addend)))
|
||||
}
|
||||
// Direct 64 bit: S
|
||||
R_AARCH64_ABS64 | R_AARCH64_JUMP_SLOT | R_AARCH64_GLOB_DAT => {
|
||||
R_AARCH64_JUMP_SLOT | R_AARCH64_GLOB_DAT => {
|
||||
Ok(Some(RelaValue::QWord(s)))
|
||||
}
|
||||
_ => todo!("Unsupported relocation: {}", self.r_type),
|
||||
|
Loading…
x
Reference in New Issue
Block a user