diff --git a/Cargo.lock b/Cargo.lock index 358b2f2e924c3..d607b91422223 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2225,6 +2225,18 @@ dependencies = [ "memchr", ] +[[package]] +name = "object" +version = "0.31.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d08090140cfee2e09897d6be320b47a45b79eb68b414de87130f9532966e2f1d" +dependencies = [ + "crc32fast", + "hashbrown 0.13.1", + "indexmap", + "memchr", +] + [[package]] name = "odht" version = "0.3.1" @@ -3104,7 +3116,7 @@ dependencies = [ "itertools", "jobserver", "libc", - "object 0.30.1", + "object 0.31.0", "pathdiff", "regex", "rustc_arena", diff --git a/compiler/rustc_codegen_ssa/Cargo.toml b/compiler/rustc_codegen_ssa/Cargo.toml index c55991e00d3ae..b47105433d62c 100644 --- a/compiler/rustc_codegen_ssa/Cargo.toml +++ b/compiler/rustc_codegen_ssa/Cargo.toml @@ -43,6 +43,6 @@ rustc_target = { path = "../rustc_target" } rustc_session = { path = "../rustc_session" } [dependencies.object] -version = "0.30.1" +version = "0.31.0" default-features = false features = ["read_core", "elf", "macho", "pe", "unaligned", "archive", "write"] diff --git a/compiler/rustc_codegen_ssa/src/back/metadata.rs b/compiler/rustc_codegen_ssa/src/back/metadata.rs index d5d843702c003..3ff2e46ffb9a4 100644 --- a/compiler/rustc_codegen_ssa/src/back/metadata.rs +++ b/compiler/rustc_codegen_ssa/src/back/metadata.rs @@ -140,6 +140,11 @@ pub(crate) fn create_object_file(sess: &Session) -> Option { let arch = match sess.target.options.cpu.as_ref() {