From e2b60152beb61147ffa05fb46fb18fa0c297ed04 Mon Sep 17 00:00:00 2001 From: Sunil Nimmagadda Date: Thu, 5 Nov 2026 23:32:41 +0530 Subject: Make it inspection friendly. --- mkelf.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mkelf.lua') diff --git a/mkelf.lua b/mkelf.lua index d7e801d..ddcce1d 100644 --- a/mkelf.lua +++ b/mkelf.lua @@ -176,7 +176,8 @@ function M.main() end i = i + 1 end - local header, segments, sections = elf_layout(loadconfig(infn)) + local hopts, sgopts, scopts = loadconfig(infn) + local header, segments, sections = elf_layout(hopts, sgopts, scopts) local ok, binary = pcall(elf_pack, header, segments, sections) if not ok then die("packing failed: %s", binary) end local out , err = io.open(outfn, "wb") -- cgit v1.3