Added ELF program header

This commit is contained in:
Eduard Urbach 2023-10-17 22:08:40 +02:00
parent 5fc2911523
commit 65d794458a
Signed by: eduard
GPG key ID: 49226B848C78F6C8
3 changed files with 25 additions and 8 deletions

View file

@ -58,7 +58,7 @@ func writeToDisk(filePath string, code []byte, data []byte) error {
}
buffer := bufio.NewWriter(file)
executable := elf.New()
executable := elf.New(code)
executable.Write(buffer)
buffer.Flush()