From 0850961b339fe6d81eb4aa562edfc82c6c21afe3 Mon Sep 17 00:00:00 2001 From: Sunil Nimmagadda Date: Sat, 24 Oct 2026 11:37:41 +0530 Subject: Sprinkle some todo markers. --- elf/constants.lua | 2 +- mkelf.lua | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/elf/constants.lua b/elf/constants.lua index b06b275..0a7c735 100644 --- a/elf/constants.lua +++ b/elf/constants.lua @@ -73,7 +73,7 @@ M.Machine = { spu = 0x17, -- IBM SPC/SPU v800 = 0x24, -- NEC V800 fr20 = 0x25, -- Fujitsu FR20 - -- todo + -- TODO } ---@enum SegmentType 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 -- cgit v1.3