diff options
| author | Sunil Nimmagadda <sunil@nimmagadda.net> | 2026-10-22 15:28:14 +0530 |
|---|---|---|
| committer | Sunil Nimmagadda <sunil@nimmagadda.net> | 2026-10-22 15:28:14 +0530 |
| commit | 8c517de1d770a90023d94d96ec3963118f71d476 (patch) | |
| tree | 45806286ace70f53ec86331c01da3e405b6b8b36 /mkelf.lua | |
| parent | d2376460a2fa359dc98f8138a672bce9ceee03f1 (diff) | |
Mark it as to-be-closed instead of explicit close.
Diffstat (limited to 'mkelf.lua')
| -rw-r--r-- | mkelf.lua | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -272,12 +272,11 @@ local function main() output = arg[i + 1] ::continue:: end - local f = assert(io.open(output, "wb")) + local f <close> = assert(io.open(output, "wb")) header.phnum = #phdrs header.phentsize = (header.class == Class.bit64) and 0x38 or 0x20 f:write(ElfHeader_pack(header)) f:write(ElfPHeader_pack(phdrs, header.data, header.class)) - f:close() end main() |
