aboutsummaryrefslogtreecommitdiff
path: root/sample_elf.lua
diff options
context:
space:
mode:
Diffstat (limited to 'sample_elf.lua')
-rw-r--r--sample_elf.lua36
1 files changed, 36 insertions, 0 deletions
diff --git a/sample_elf.lua b/sample_elf.lua
new file mode 100644
index 0000000..26f0a62
--- /dev/null
+++ b/sample_elf.lua
@@ -0,0 +1,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,
+ },
+}