diff options
author | norly <ny-git@enpas.org> | 2013-02-27 21:34:34 +0000 |
---|---|---|
committer | norly <ny-git@enpas.org> | 2013-02-27 21:34:34 +0000 |
commit | 98e4a3d2f841bce726473d418e2a5b10e28806d7 (patch) | |
tree | d737e4cbef6f2637df7e8a961cb5eef1f317ba77 /include | |
parent | ca9ebec2dae232010645e9a875ee47427f29a21e (diff) |
Implement mInsertBefore, for pre-.interp injection
Diffstat (limited to 'include')
-rw-r--r-- | include/libelfu/modelops.h | 3 | ||||
-rw-r--r-- | include/options.h | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/include/libelfu/modelops.h b/include/libelfu/modelops.h index 9475eba..c89630f 100644 --- a/include/libelfu/modelops.h +++ b/include/libelfu/modelops.h @@ -17,4 +17,7 @@ int elfu_mCheck(ElfuElf *me); ElfuElf* elfu_mFromElf(Elf *e); void elfu_mToElf(ElfuElf *me, Elf *e); + +GElf_Xword elfu_mInsertBefore(ElfuElf *me, GElf_Off off, GElf_Xword size); + #endif diff --git a/include/options.h b/include/options.h index f39f01e..ee9d612 100644 --- a/include/options.h +++ b/include/options.h @@ -8,6 +8,8 @@ typedef struct { int printHeader; int printSegments; int printSections; + unsigned insertBeforeOffs; + unsigned insertBeforeSz; } CLIOpts; |