aboutsummaryrefslogtreecommitdiff
path: root/sample.elf.lua
blob: 26f0a62dc3c90f0b8e78c61958dd1dfa254c4ad9 (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
30
31
32
33
34
35
36
header {
    class = Class.bit64,
    data = Endian.little,
    type = Type.exec,
    machine = Machine.x86_64,
}

-- segments {
--     { type = SegmentType.dynamic },
--     "x",
-- }
-- sections { 5 }

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,
    },
}