summaryrefslogtreecommitdiff
path: root/include/libelfu
diff options
context:
space:
mode:
Diffstat (limited to 'include/libelfu')
-rw-r--r--include/libelfu/modelops.h3
-rw-r--r--include/libelfu/types.h3
2 files changed, 3 insertions, 3 deletions
diff --git a/include/libelfu/modelops.h b/include/libelfu/modelops.h
index fec6821..4dacd43 100644
--- a/include/libelfu/modelops.h
+++ b/include/libelfu/modelops.h
@@ -7,7 +7,7 @@
#include <libelfu/types.h>
-#define ELFU_SYMSTR(symtabscn, off) (((char*)(symtabscn)->linkptr->data.d_buf) + (off))
+#define ELFU_SYMSTR(symtabscn, off) ((symtabscn)->linkptr->databuf + (off))
GElf_Word elfu_mSymtabLookupVal(ElfuElf *me, ElfuScn *msst, GElf_Word entry);
@@ -29,6 +29,7 @@ typedef void* (SectionHandlerFunc)(ElfuElf *me, ElfuScn *ms, void *aux1, void *a
ElfuScn* elfu_mScnByOldscn(ElfuElf *me, ElfuScn *oldscn);
char* elfu_mScnName(ElfuElf *me, ElfuScn *ms);
ElfuScn** elfu_mScnSortedByOffset(ElfuElf *me, size_t *count);
+ElfuScn* elfu_mScnAlloc();
GElf_Addr elfu_mLayoutGetSpaceInPhdr(ElfuElf *me, GElf_Word size,
diff --git a/include/libelfu/types.h b/include/libelfu/types.h
index e4dd26c..ab9f76c 100644
--- a/include/libelfu/types.h
+++ b/include/libelfu/types.h
@@ -58,10 +58,9 @@ typedef struct ElfuReltab {
typedef struct ElfuScn {
GElf_Shdr shdr;
- Elf_Data data;
-
struct ElfuScn *linkptr;
struct ElfuScn *infoptr;
+ char *databuf;
struct ElfuScn *oldptr;