summaryrefslogtreecommitdiff
path: root/src/copy/sections.c
blob: 046b5905a0fa6625b2b7611e9b3c1342ef5642bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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);
  }
}