Browse Source

gdb-experiment.go: fix .text section header

master
Přemysl Janouch 2 years ago
parent
commit
6699a454ec
Signed by: Přemysl Janouch <p.janouch@gmail.com> GPG Key ID: B715679E3A361BE6
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      gdb-experiment.go

+ 1
- 1
gdb-experiment.go View File

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

Loading…
Cancel
Save