gdb-experiment.go: fix .text section header

This commit is contained in:
Přemysl Eric Janouch 2017-06-25 22:00:59 +02:00
parent 4cb7acf8bd
commit 6699a454ec
Signed by: p
GPG Key ID: B715679E3A361BE6
1 changed files with 1 additions and 1 deletions

View File

@ -376,7 +376,7 @@ func main() {
sh.dq(elf.SHF_ALLOC | elf.SHF_EXECINSTR)
sh.dq(ElfCodeAddr + codeOffset) // Memory address
sh.dq(codeOffset) // Byte offset
sh.dq(len(code) - codeOffset) // Byte size
sh.dq(len(code)) // Byte size
sh.dd(0).dd(0) // No link, no info
sh.dq(0).dq(0) // No alignment, no entry size
shCount++