diff options
author | norly <ny-git@enpas.org> | 2013-01-28 02:14:24 +0000 |
---|---|---|
committer | norly <ny-git@enpas.org> | 2013-02-11 01:32:32 +0000 |
commit | a78f477fc5a2327118bb129026e18ba8302ec7aa (patch) | |
tree | 11a97c329660ffe4cf77ba8f3749be1d4d388fc9 /src/copy/sections.c | |
parent | d9eb4398773cbda1dc185f4cf7b1b0e4cb9fb135 (diff) |
Initial work on copying an ELF file
Diffstat (limited to 'src/copy/sections.c')
-rw-r--r-- | src/copy/sections.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/copy/sections.c b/src/copy/sections.c new file mode 100644 index 0000000..046b590 --- /dev/null +++ b/src/copy/sections.c @@ -0,0 +1,25 @@ +#include <stdio.h> + +#include <libelf.h> +#include <gelf.h> + +#include <libelfu/libelfu.h> + + + +void elfu_copySection(Elf *eo, Elf_Scn *scn); + + + +void elfu_copySections(Elf *eo, Elf *ei) +{ + Elf_Scn *scn; + + scn = elf_getscn(ei, 1); + + while (scn) { + elfu_copySection(eo, scn); + + scn = elf_nextscn(ei, scn); + } +} |