summary refs log tree commit diff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs10
1 files changed, 10 insertions, 0 deletions
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(())
     }
 }