Skip to content

Commit

Permalink
try implementing suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
Oneirical committed Jun 5, 2024
1 parent ef3274b commit 8fc325a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/tools/run-make-support/src/nm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ use object::{Object, ObjectSection};
use std::path::Path;

#[derive(Debug)]
pub struct Nm {
file: Option<object::File>,
pub struct Nm<'a> {
file: Option<object::File<'a>>,
}

pub fn nm() -> Nm {
Expand Down Expand Up @@ -32,7 +32,7 @@ impl Nm {
let object_file = self.file;
let mut symbols_str = String::new();
for section in object_file.sections() {
if let Ok(ObjectSection::SymbolTable(st)) = section.parse::<object::SymbolTable>() {
if let Ok(object::read::elf::SymbolTable(st)) = section.parse::<object::read::elf::SymbolTable<'_, '_>>() {
for symbol in st.symbols() {
symbols_str.push_str(&format!(
"{:016x} {:?} {}\n",
Expand Down

0 comments on commit 8fc325a

Please sign in to comment.