From 13b1a45effa20ed51db56128ecd7ebefcbf593dd Mon Sep 17 00:00:00 2001 From: Sunil Nimmagadda Date: Sun, 18 Oct 2026 12:03:33 +0530 Subject: Mark it binary for non POSIX. --- mkelf.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mkelf.lua b/mkelf.lua index 75be2f5..1aea127 100644 --- a/mkelf.lua +++ b/mkelf.lua @@ -257,7 +257,7 @@ local function main() output = arg[i + 1] ::continue:: end - local f = assert(io.open(output, "w")) + local f = assert(io.open(output, "wb")) header.phnum = #phdrs header.phentsize = (header.class == Class.bit64) and 0x38 or 0x20 f:write(ElfHeader_pack(header)) -- cgit v1.3