Skip to content

Commit 055dbf1

Browse files
committed
binary-portability: object 0.30 -> 0.36
1 parent 38392bb commit 055dbf1

File tree

3 files changed

+31
-4
lines changed

3 files changed

+31
-4
lines changed

Cargo.lock

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

binary-portability/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ homepage = "https://github.com/indygreg/toolchain-tools"
1111
repository = "https://github.com/indygreg/toolchain-tools.git"
1212

1313
[dependencies]
14-
object = "0.30.4"
14+
object = "0.36.7"
1515
thiserror = "2.0.12"

binary-portability/src/elf.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ pub fn analyze_elf<Elf: FileHeader<Endian = Endianness>>(data: &[u8]) -> Result<
5454
// every symbol.
5555
let symbol_version = if section.sh_type(endian) == SHT_DYNSYM {
5656
if let Some(versions) = &symbol_versions {
57-
let version_index = versions.version_index(endian, symbol_index);
57+
let version_index =
58+
versions.version_index(endian, object::SymbolIndex(symbol_index));
5859

5960
if let Some(version) = versions.version(version_index)? {
6061
let version = version.name();

0 commit comments

Comments
 (0)