summaryrefslogtreecommitdiff
path: root/mkelf.lua
diff options
context:
space:
mode:
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))