aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSunil Nimmagadda <sunil@nimmagadda.net>2026-11-04 21:49:04 +0530
committerSunil Nimmagadda <sunil@nimmagadda.net>2026-11-04 21:49:04 +0530
commit2322f64295b6c02101e0327b3a03325715b73627 (patch)
tree766f28620bc706392bc556b3e9a752a9168cb25e
parenteb4ed34d7dfa5ce0e4cb0f24a3ec9c2115406b9e (diff)
Disable this for now.
-rw-r--r--mkelf.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/mkelf.lua b/mkelf.lua
index 2fcd207..a66c779 100644
--- a/mkelf.lua
+++ b/mkelf.lua
@@ -106,8 +106,8 @@ function M.main()
local header, segments, sections = loadconfig(infn)
if not header then die("header missing") end
-- TODO check against headerOptions not normalized header.
- if header.phnum == 0 then header.phnum = #segments end
- if header.shnum == 0 then header.shnum = #sections end
+ -- if header.phnum == 0 then header.phnum = #segments end
+ -- if header.shnum == 0 then header.shnum = #sections end
local out <close>, err = io.open(outfn, "wb")
if out == nil then die("failed to open: %s", outfn, err) end
out:write(elf.header.pack(header))