diff options
Diffstat (limited to 'mkelf.lua')
| -rw-r--r-- | mkelf.lua | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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)) |
