aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Stoelp <johannes.stoelp@gmail.com>2021-09-22 21:20:14 +0200
committerJohannes Stoelp <johannes.stoelp@gmail.com>2021-09-22 21:20:14 +0200
commitdb101298390662a47233a59af9d6490dba703819 (patch)
tree42bd9f9556bccc9e09bbfd9d24d1a5174e0c4083
parentb633edbff8ed1b92aaa41ebc5c0fd63ea55f0f35 (diff)
downloadvdso-proxy-poc-db101298390662a47233a59af9d6490dba703819.tar.gz
vdso-proxy-poc-db101298390662a47233a59af9d6490dba703819.zip
updated find_version call to pass dynstrtab
-rw-r--r--Cargo.lock14
-rw-r--r--src/main.rs2
2 files changed, 8 insertions, 8 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 16f24aa..1037c32 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -11,7 +11,7 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
[[package]]
name = "goblin"
version = "0.4.2"
-source = "git+https://github.com/johannst/goblin?branch=elf-gnu-symbol-versioning-utils#0087a0c51adc0be4912554b4537e86c9c4e9bf28"
+source = "git+https://github.com/johannst/goblin?branch=elf-gnu-symbol-versioning-utils#b3f8ab6611f652f6b18cc361680ca5d36bbad6c5"
dependencies = [
"log",
"plain",
@@ -20,9 +20,9 @@ dependencies = [
[[package]]
name = "libc"
-version = "0.2.100"
+version = "0.2.102"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a1fa8cddc8fbbee11227ef194b5317ed014b8acbf15139bd716a18ad3fe99ec5"
+checksum = "a2a5ac8f984bfcf3a823267e5fde638acc3325f6496633a5da6bb6eb2171e103"
[[package]]
name = "log"
@@ -41,9 +41,9 @@ checksum = "b4596b6d070b27117e987119b4dac604f3c58cfb0b191112e24771b2faeac1a6"
[[package]]
name = "proc-macro2"
-version = "1.0.28"
+version = "1.0.29"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5c7ed8b8c7b886ea3ed7dde405212185f423ab44682667c8c6dd14aa1d9f6612"
+checksum = "b9f5105d4fdaab20335ca9565e106a5d9b82b6219b5ba735731124ac6711d23d"
dependencies = [
"unicode-xid",
]
@@ -79,9 +79,9 @@ dependencies = [
[[package]]
name = "syn"
-version = "1.0.75"
+version = "1.0.76"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b7f58f7e8eaa0009c5fec437aabf511bd9933e4b2d7407bd05273c01a8906ea7"
+checksum = "c6f107db402c2c2055242dbf4d2af0e69197202e9faacbef9571bbe47f5a1b84"
dependencies = [
"proc-macro2",
"quote",
diff --git a/src/main.rs b/src/main.rs
index 2ee1d66..36d2179 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -95,7 +95,7 @@ unsafe fn get_vdso_sym(
"No Versym entry for symbol with idx {} found",
idx
)))?
- .find_version(elf.verdef.as_ref(), elf.verneed.as_ref())
+ .find_version(elf.verdef.as_ref(), elf.verneed.as_ref(), &elf.dynstrtab)
.ok_or(Error::SymbolVersionError(format!(
"No symbol version string found for symbol with idx {}",
idx