You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rust-gimli/0001-bump-object-to-0.6.patch

35 lines
991 B

From 8c4e75bb93a53a97d6ce8bc187cae41432769349 Mon Sep 17 00:00:00 2001
From: Igor Gnatenko <i.gnatenko.brain@gmail.com>
Date: Sun, 3 Dec 2017 21:40:41 +0100
Subject: [PATCH] bump object to 0.6
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
---
examples/dwarfdump.rs | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/examples/dwarfdump.rs b/examples/dwarfdump.rs
index e6d2050..f601712 100755
--- a/examples/dwarfdump.rs
+++ b/examples/dwarfdump.rs
@@ -9,6 +9,7 @@ extern crate object;
use fallible_iterator::FallibleIterator;
use gimli::UnwindSection;
+use object::Object;
use std::collections::HashMap;
use std::env;
use std::io;
@@ -217,7 +218,7 @@ where
Endian: gimli::Endianity,
'file: 'input,
{
- let data = file.get_section(S::section_name()).unwrap_or(&[]);
+ let data = file.section_data_by_name(S::section_name()).unwrap_or(&[]);
S::from(gimli::EndianBuf::new(data, endian))
}
--
2.15.1