Added ELF program header
This commit is contained in:
parent
5fc2911523
commit
65d794458a
3 changed files with 25 additions and 8 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue