bump obj to 0.26

Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
pull/63/head
Dave Tucker 3 years ago committed by Alessandro Decina
parent 544efdd4d7
commit a10a7b3bf2

@ -13,7 +13,7 @@ edition = "2018"
[dependencies]
libc = { version = "0.2" }
thiserror = "1"
object = { version = "0.23", default-features = false, features = ["std", "read_core", "elf"] }
object = { version = "0.26", default-features = false, features = ["std", "read_core", "elf"] }
bitflags = "1.2.1"
bytes = "1"
lazy_static = "1"

@ -296,7 +296,7 @@ enum ResolveSymbolError {
fn resolve_symbol(path: &str, symbol: &str) -> Result<u64, ResolveSymbolError> {
let data = fs::read(path)?;
let obj = object::read::File::parse(&data)?;
let obj = object::read::File::parse(&*data)?;
obj.dynamic_symbols()
.chain(obj.symbols())

Loading…
Cancel
Save