From 8c284c3344c68cfda9e2a4b4fba171f29a8c05cf Mon Sep 17 00:00:00 2001 From: tzlil Date: Wed, 22 Mar 2023 01:47:48 +0200 Subject: sleep --- src/main.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 6032500..c143e22 100644 --- a/src/main.rs +++ b/src/main.rs @@ -134,6 +134,16 @@ impl std::fmt::Display for Elf { )); } } + + // printing notes is a littlec complicated + // for section in self.sections.iter().filter(|&&sec| sec.r#type == ElfSectionType::Note) { + // let name = unsafe { + // std::ffi::CStr::from_ptr(self.shstrtab.add(section.name as usize) as *const i8) + // .to_str() + // .expect("Bad section name") + // }; + // formatter.write_fmt(format_args!("Displaying notes found in: {}\n{}\n", name, section))?; + // } Ok(()) } } -- cgit 1.4.1