Skip to content

Commit 2f9ca10

Browse files
committed
Update Cranelift, object and gimli
1 parent 6e06f22 commit 2f9ca10

File tree

4 files changed

+28
-28
lines changed

4 files changed

+28
-28
lines changed

Cargo.lock

Lines changed: 24 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ cranelift-native = { git = "https://github.com/bytecodealliance/wasmtime.git", b
1616
cranelift-jit = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "main", optional = true }
1717
cranelift-object = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "main" }
1818
target-lexicon = "0.12.0"
19-
gimli = { version = "0.23.0", default-features = false, features = ["write"]}
20-
object = { version = "0.23.0", default-features = false, features = ["std", "read_core", "write", "archive", "coff", "elf", "macho", "pe"] }
19+
gimli = { version = "0.24.0", default-features = false, features = ["write"]}
20+
object = { version = "0.24.0", default-features = false, features = ["std", "read_core", "write", "archive", "coff", "elf", "macho", "pe"] }
2121

2222
ar = { git = "https://github.com/bjorn3/rust-ar.git", branch = "do_not_remove_cg_clif_ranlib" }
2323
indexmap = "1.0.2"

src/archive.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ impl<'a> ArchiveBuilder<'a> for ArArchiveBuilder<'a> {
160160
};
161161

162162
if !self.no_builtin_ranlib {
163-
match object::File::parse(&data) {
163+
match object::File::parse(&*data) {
164164
Ok(object) => {
165165
symbol_table.insert(
166166
entry_name.as_bytes().to_vec(),

src/driver/jit.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ fn load_imported_symbols_for_jit(tcx: TyCtxt<'_>) -> Vec<(String, *const u8)> {
207207
use object::{Object, ObjectSymbol};
208208
let lib = libloading::Library::new(&path).unwrap();
209209
let obj = std::fs::read(path).unwrap();
210-
let obj = object::File::parse(&obj).unwrap();
210+
let obj = object::File::parse(&*obj).unwrap();
211211
imported_symbols.extend(obj.dynamic_symbols().filter_map(|symbol| {
212212
let name = symbol.name().unwrap().to_string();
213213
if name.is_empty() || !symbol.is_global() || symbol.is_undefined() {

0 commit comments

Comments
 (0)