We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef3274b commit cd07cb5Copy full SHA for cd07cb5
src/tools/run-make-support/src/nm/mod.rs
@@ -3,8 +3,8 @@ use object::{Object, ObjectSection};
3
use std::path::Path;
4
5
#[derive(Debug)]
6
-pub struct Nm {
7
- file: Option<object::File>,
+pub struct Nm<'a> {
+ file: Option<object::File<'a>>,
8
}
9
10
pub fn nm() -> Nm {
@@ -32,7 +32,9 @@ impl Nm {
32
let object_file = self.file;
33
let mut symbols_str = String::new();
34
for section in object_file.sections() {
35
- if let Ok(ObjectSection::SymbolTable(st)) = section.parse::<object::SymbolTable>() {
+ if let Ok(object::read::elf::SymbolTable(st)) =
36
+ section.parse::<object::read::elf::SymbolTable<'_, '_>>()
37
+ {
38
for symbol in st.symbols() {
39
symbols_str.push_str(&format!(
40
"{:016x} {:?} {}\n",
0 commit comments