diff options
-rw-r--r-- | gdb-experiment.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb-experiment.go b/gdb-experiment.go index cb976b9..13980fc 100644 --- a/gdb-experiment.go +++ b/gdb-experiment.go @@ -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++ |