Skip to content

Commit

Permalink
Merge pull request #2976 from bjorn3/aarch64-object
Browse files Browse the repository at this point in the history
Lower Arm64Call relocations in cranelift-object
  • Loading branch information
Pat Hickey authored Jun 13, 2021
2 parents b506bc3 + e9f3ac2 commit 5737558
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cranelift/object/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ edition = "2018"
[dependencies]
cranelift-module = { path = "../module", version = "0.75.0" }
cranelift-codegen = { path = "../codegen", version = "0.75.0", default-features = false, features = ["std"] }
object = { version = "0.25.0", default-features = false, features = ["write"] }
object = { version = "0.25.3", default-features = false, features = ["write"] }
target-lexicon = "0.12"
anyhow = "1.0"
log = { version = "0.4.6", default-features = false }
Expand Down
7 changes: 6 additions & 1 deletion cranelift/object/src/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down Expand Up @@ -614,7 +619,7 @@ impl ObjectModule {
)
}
// FIXME
_ => unimplemented!(),
reloc => unimplemented!("{:?}", reloc),
};
ObjectRelocRecord {
offset: record.offset,
Expand Down

0 comments on commit 5737558

Please sign in to comment.