Print ELF header/segments/sections
[centaur.git] / include / printing.h
diff --git a/include/printing.h b/include/printing.h
new file mode 100644 (file)
index 0000000..bda2fc1
--- /dev/null
@@ -0,0 +1,18 @@
+#ifndef __PRINTING_H__
+#define __PRINTING_H__
+
+#include <libelf.h>
+
+
+void printHeader(Elf *e);
+
+void printSegmentsWithSection(Elf *e, Elf_Scn *scn);
+void printSection(Elf *e, Elf_Scn *scn);
+void printSections(Elf *e);
+
+char* segmentTypeStr(size_t pt);
+void printSectionsInSegment(Elf *e, GElf_Phdr *phdr);
+void printSegments(Elf *e);
+
+
+#endif