summaryrefslogtreecommitdiff
path: root/mkelf.lua
diff options
context:
space:
mode:
Diffstat (limited to 'mkelf.lua')
-rw-r--r--mkelf.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/mkelf.lua b/mkelf.lua
index 7dd32c6..5a61888 100644
--- a/mkelf.lua
+++ b/mkelf.lua
@@ -35,6 +35,7 @@ local function loadconfig(fn)
-- TODO error check for multiple headers
local chunk, err = loadfile(fn, "t", env)
if not chunk then die("%s", err) end
+ -- TODO sandbox against malformed configs
local ok, perr = pcall(chunk)
if not ok then die("%s", perr) end
return header, segments, sections