aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mkelf.lua3
1 files changed, 2 insertions, 1 deletions
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 <close>, err = io.open(outfn, "wb")