Added ELF program header

This commit is contained in:
2023-10-17 22:08:40 +02:00
parent 4554fb82cb
commit 8b66c9588c
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()