aboutsummaryrefslogtreecommitdiff
path: root/sample.elf.lua
blob: b2c1008e72afa2e6d90b831ae58f0ffd9aabdbb0 (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
26
27
28
29
header {
    class = Class.bit64,
    data = Endian.big,
    type = Type.exec,
    machine = Machine.i386,
}

segments {
    {
        type = SegmentType.dynamic,
    },
    {
        type = SegmentType.dynamic,
        flags = SegmentFlags.r,
        offset = 0xa,
        vaddr = 0xaa,
        paddr = 0xaaa,
        filesz = 0xaaaa,
        memsz = 0xaaaaa,
        align = 1,
    },
}

sections {
    { name = ".foo",
        type = SectionType.symtab,
        flags = SectionFlags.alloc
    },
}