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 ------------------------------------ sample_elf.lua | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 36 deletions(-) delete mode 100644 sample.elf.lua create mode 100644 sample_elf.lua diff --git a/sample.elf.lua b/sample.elf.lua deleted file mode 100644 index 26f0a62..0000000 --- a/sample.elf.lua +++ /dev/null @@ -1,36 +0,0 @@ -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, - }, -} 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