From a4c87e8e0c68bc2c68bcca14e5c007c6f07bab53 Mon Sep 17 00:00:00 2001 From: Sunil Nimmagadda Date: Fri, 30 Oct 2026 22:32:23 +0530 Subject: Make sure a valid header is specified. --- mkelf.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/mkelf.lua b/mkelf.lua index 2f811a3..eb4c67b 100644 --- a/mkelf.lua +++ b/mkelf.lua @@ -96,6 +96,7 @@ local function main() i = i + 1 end local header, segments, sections = loadconfig(infn) + if next(header) == nil then die("header missing") end if header.phnum == 0 then header.phnum = #segments end if header.shnum == 0 then header.shnum = #sections end local out = assert(io.open(outfn, "wb")) -- cgit v1.3