Simplified the functions that generate executables

This commit is contained in:
Eduard Urbach 2025-02-21 19:46:32 +01:00
parent 96ac298980
commit cf1ed9948f
Signed by: eduard
GPG key ID: 49226B848C78F6C8
3 changed files with 71 additions and 64 deletions

View file

@ -116,7 +116,6 @@ func Write(writer io.Writer, code []byte, data []byte) {
binary.Write(writer, binary.LittleEndian, &m.CodeHeader)
binary.Write(writer, binary.LittleEndian, &m.DataHeader)
binary.Write(writer, binary.LittleEndian, &m.UnixThread)
writer.Write(bytes.Repeat([]byte{0x00}, codePadding))
writer.Write(code)
writer.Write(bytes.Repeat([]byte{0x00}, dataPadding))