From fd07227afb68dfc5080427aac5714ba82f9e8b93 Mon Sep 17 00:00:00 2001 From: Sunil Nimmagadda Date: Sat, 24 Oct 2026 14:14:33 +0530 Subject: 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. --- sample.elf.lua | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'sample.elf.lua') 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 { -- cgit v1.3