summaryrefslogtreecommitdiff
path: root/mkelf.lua
diff options
context:
space:
mode:
authorSunil Nimmagadda <sunil@nimmagadda.net>2026-10-24 14:22:36 +0530
committerSunil Nimmagadda <sunil@nimmagadda.net>2026-10-24 14:22:36 +0530
commit5eece24768c35409fe2a48558386f10294f1a700 (patch)
tree9649a1de6d323f849d4aebda692cd2658b357125 /mkelf.lua
parentfd07227afb68dfc5080427aac5714ba82f9e8b93 (diff)
Too much for a simple script.
Diffstat (limited to 'mkelf.lua')
-rw-r--r--mkelf.lua1
1 files changed, 0 insertions, 1 deletions
diff --git a/mkelf.lua b/mkelf.lua
index af794a0..d6e412c 100644
--- a/mkelf.lua
+++ b/mkelf.lua
@@ -68,7 +68,6 @@ local function main()
local header, segments, sections = loadconfig(infn)
header.phnum = #segments
header.phentsize = (header.class == ec.Class.bit64) and 0x38 or 0x20
- -- TODO write to a temp file and atomic rename to outfn.
local out <close> = assert(io.open(outfn, "wb"))
out:write(header:pack())
out:write(segments:pack(header.data, header.class))