From 7ed760fc744d0c6862dd670c8e440c75ea5b9c04 Mon Sep 17 00:00:00 2001 From: Sunil Nimmagadda Date: Wed, 11 Nov 2026 09:30:06 +0530 Subject: Call it sample_elf.lua --- sample_elf.lua | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 sample_elf.lua (limited to 'sample_elf.lua') 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, + }, +} -- cgit v1.3