fix aarch macos relocation for LinkedData

This commit is contained in:
Luke Boswell 2023-10-08 20:18:09 +11:00 committed by Folkert
parent 8414e18ffb
commit f1e049ddc9
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C

View file

@ -957,7 +957,7 @@ fn build_proc<'a, B: Backend<'a>>(
},
encoding: RelocationEncoding::Generic,
symbol: sym_id,
addend: -4,
addend: 0,
};
relocations.push((section_id, r));
@ -969,7 +969,7 @@ fn build_proc<'a, B: Backend<'a>>(
size: 12,
kind: RelocationKind::MachO {
value: object::macho::ARM64_RELOC_PAGEOFF12,
relative: true,
relative: false,
},
encoding: RelocationEncoding::Generic,
symbol: sym_id,