about summary refs log tree commit diff stats
path: root/src/include
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2024-08-17 14:25:04 +0200
committerptitSeb <sebastien.chev@gmail.com>2024-08-17 14:25:04 +0200
commitd47b1b0e5679652e6b5fb5fd4cee52b775229a63 (patch)
tree46f331bed24c7b7212fb7005c162d324a6956d23 /src/include
parentfa87b0fcef3dff593a507b3200ef83d846101d64 (diff)
downloadbox64-d47b1b0e5679652e6b5fb5fd4cee52b775229a63.tar.gz
box64-d47b1b0e5679652e6b5fb5fd4cee52b775229a63.zip
[BOX32] Added 32bits elf header parser and dumper
Diffstat (limited to 'src/include')
-rw-r--r--src/include/elfload_dump.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/include/elfload_dump.h b/src/include/elfload_dump.h
index 74906b5e..3fa0a910 100644
--- a/src/include/elfload_dump.h
+++ b/src/include/elfload_dump.h
@@ -3,16 +3,25 @@
 
 typedef struct elfheader_s elfheader_t;
 
+const char* SymName32(elfheader_t *h, Elf32_Sym* sym);
 const char* SymName64(elfheader_t *h, Elf64_Sym* sym);
+const char* DumpRelType32(int t);
 const char* DumpRelType64(int t);
+void DumpMainHeader32(Elf32_Ehdr *header, elfheader_t *h);
 void DumpMainHeader64(Elf64_Ehdr *header, elfheader_t *h);
+void DumpSymTab32(elfheader_t *h);
 void DumpSymTab64(elfheader_t *h);
+void DumpDynamicSections32(elfheader_t *h);
 void DumpDynamicSections64(elfheader_t *h);
 void DumpDynamicNeeded(elfheader_t *h);
 void DumpDynamicRPath(elfheader_t *h);
+void DumpDynSym32(elfheader_t *h);
 void DumpDynSym64(elfheader_t *h);
+void DumpRelTable32(elfheader_t *h, int cnt, Elf32_Rel *rel, const char* name);
 void DumpRelTable64(elfheader_t *h, int cnt, Elf64_Rel *rel, const char* name);
+void DumpRelATable32(elfheader_t *h, int cnt, Elf32_Rela *rela, const char* name);
 void DumpRelATable64(elfheader_t *h, int cnt, Elf64_Rela *rela, const char* name);
+void DumpRelRTable32(elfheader_t *h, int cnt, Elf32_Relr *relr, const char *name);
 void DumpRelRTable64(elfheader_t *h, int cnt, Elf64_Relr *relr, const char *name);
 
 void DumpBinary(char* p, int sz);