try implementing suggestions
This commit is contained in:
parent
83cb760e2c
commit
c1597f9039
@ -1 +1 @@
|
||||
Subproject commit 5e05efa87905fb5b351a2bc5644d60c57d6d9327
|
||||
Subproject commit 72265bea210891ae47bbe6d4f17b493ef0606619
|
@ -1 +1 @@
|
||||
Subproject commit 5e9051f71638aa941cd5dda465e25c61cde9594f
|
||||
Subproject commit 45c1a6d69edfd1fc91fb7504cb73958dbd09441e
|
@ -1 +1 @@
|
||||
Subproject commit bbaabbe088e21a81a0d9ae6757705020d5d7b416
|
||||
Subproject commit cb58c430b4e8054c2cb81d2d4434092c482a93d8
|
@ -1 +1 @@
|
||||
Subproject commit 6019b76f5b28938565b251bbba0bf5cc5c43d863
|
||||
Subproject commit 0b805c65804019b0ac8f2fe3117afad82a6069b8
|
@ -1 +1 @@
|
||||
Subproject commit 4840dca06cadf48b305d3ce0aeafde7f80933f80
|
||||
Subproject commit b1d97bd6113aba732b2091ce093c76f2d05bb8a0
|
@ -1 +1 @@
|
||||
Subproject commit 6a7374bd87cbac0f8be4fd4877d8186d9c313985
|
||||
Subproject commit aec82168dd3121289a194b381f56076fc789a4d2
|
@ -1 +1 @@
|
||||
Subproject commit 431db31d0dbeda320caf8ef8535ea48eb3093407
|
||||
Subproject commit a1f47ec3f7cd076986f1bfcd7061f2e8cb1a726e
|
@ -3,8 +3,8 @@
|
||||
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 {
|
||||
@ -32,7 +32,9 @@ pub fn collect_symbols(&self) -> String {
|
||||
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",
|
||||
|
Loading…
Reference in New Issue
Block a user