From 150d0c42d423fe49304d648e2c19ff08f6c2e0ad Mon Sep 17 00:00:00 2001 From: norly Date: Sun, 16 Jun 2013 00:47:23 +0100 Subject: mv main.c -> elfucli.c, make it scriptable via args --- include/options.h | 22 ---------------------- include/printing.h | 18 ------------------ 2 files changed, 40 deletions(-) delete mode 100644 include/options.h delete mode 100644 include/printing.h (limited to 'include') diff --git a/include/options.h b/include/options.h deleted file mode 100644 index 2210c85..0000000 --- a/include/options.h +++ /dev/null @@ -1,22 +0,0 @@ -#ifndef __OPTIONS_H__ -#define __OPTIONS_H__ - - -typedef struct { - char *fnInput; - char *fnOutput; - int printHeader; - int printSegments; - int printSections; - unsigned insertBeforeOffs; - unsigned insertBeforeSz; - unsigned insertAfterOffs; - unsigned insertAfterSz; - unsigned expandNobitsOffs; - char *fnReladd; -} CLIOpts; - - -void parseOptions(CLIOpts *opts, int argc, char **argv); - -#endif diff --git a/include/printing.h b/include/printing.h deleted file mode 100644 index bda2fc1..0000000 --- a/include/printing.h +++ /dev/null @@ -1,18 +0,0 @@ -#ifndef __PRINTING_H__ -#define __PRINTING_H__ - -#include - - -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 -- cgit v1.2.3