Lower Arm64Call relocations in cranelift-object

This commit is contained in:
bjorn3
2021-06-10 12:54:25 +02:00
parent 3d56728b86
commit 7d23a9daf7

View File

@@ -585,6 +585,11 @@ impl ObjectModule {
32,
),
Reloc::X86GOTPCRel4 => (RelocationKind::GotRelative, RelocationEncoding::Generic, 32),
Reloc::Arm64Call => (
RelocationKind::Relative,
RelocationEncoding::AArch64Call,
26,
),
Reloc::ElfX86_64TlsGd => {
assert_eq!(
self.object.format(),
@@ -614,7 +619,7 @@ impl ObjectModule {
)
}
// FIXME
_ => unimplemented!(),
reloc => unimplemented!("{:?}", reloc),
};
ObjectRelocRecord {
offset: record.offset,