We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef3274b commit 8fc325aCopy full SHA for 8fc325a
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,7 @@ 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)) = section.parse::<object::read::elf::SymbolTable<'_, '_>>() {
36
for symbol in st.symbols() {
37
symbols_str.push_str(&format!(
38
"{:016x} {:?} {}\n",
0 commit comments