From 6699a454ec5e65e13edb31edc24c1a47d196a83a Mon Sep 17 00:00:00 2001
From: Přemysl Janouch
Date: Sun, 25 Jun 2017 22:00:59 +0200
Subject: gdb-experiment.go: fix .text section header
---
gdb-experiment.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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++
--
cgit v1.2.3-70-g09d2