projects
/
centaur.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Model to ELF (writing) support
[centaur.git]
/
src
/
copy
/
sections.c
1
#include <stdio.h>
2
3
#include <libelf.h>
4
#include <gelf.h>
5
6
#include <libelfu/libelfu.h>
7
8
9
10
void elfu_copySection(Elf *eo, Elf_Scn *scn);
11
12
13
14
void elfu_copySections(Elf *eo, Elf *ei)
15
{
16
Elf_Scn *scn;
17
18
scn = elf_getscn(ei, 1);
19
20
while (scn) {
21
elfu_copySection(eo, scn);
22
23
scn = elf_nextscn(ei, scn);
24
}
25
}