summaryrefslogtreecommitdiff
path: root/sample.elf.lua
diff options
context:
space:
mode:
authorSunil Nimmagadda <sunil@nimmagadda.net>2026-10-24 14:14:33 +0530
committerSunil Nimmagadda <sunil@nimmagadda.net>2026-10-24 14:14:33 +0530
commitfd07227afb68dfc5080427aac5714ba82f9e8b93 (patch)
tree38f9489ac2ad58e061789b189f5372a70e12e043 /sample.elf.lua
parent0f9327478c0920aeddde2fbd787da844bad27308 (diff)
Refactor header configuration handling.
- Mark optional fields and normalize them on load. - Validate (work in progress) required fields and their values. - Make sure that errors point to useful location in the config file.
Diffstat (limited to 'sample.elf.lua')
-rw-r--r--sample.elf.lua13
1 files changed, 0 insertions, 13 deletions
diff --git a/sample.elf.lua b/sample.elf.lua
index f6b48d5..d37a7c5 100644
--- a/sample.elf.lua
+++ b/sample.elf.lua
@@ -1,21 +1,8 @@
header {
- magic = { 0x7f, 0x45, 0x4c, 0x46 },
class = Class.bit64,
data = Endian.big,
- ident_version = ELFVERSION,
- osabi = Osabi.netbsd,
- abiversion = 0,
type = Type.exec,
machine = Machine.i386,
- version = ELFVERSION,
- entry = 0,
- phoff = 0x40,
- shoff = 0xff,
- flags = 0,
- ehsize = 64,
- shentsize = 0x40,
- shnum = 0,
- shstrndx = 0,
}
segments {