aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2017-06-25 22:00:59 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2017-06-25 22:18:17 +0200
commit6699a454ec5e65e13edb31edc24c1a47d196a83a (patch)
tree6f9b0d6f8c54e428fccff86b9f4735408424dfab
parent4cb7acf8bd8682b93881bb3a2e8c5ad3400c63d7 (diff)
downloadbfc-6699a454ec5e65e13edb31edc24c1a47d196a83a.tar.gz
bfc-6699a454ec5e65e13edb31edc24c1a47d196a83a.tar.xz
bfc-6699a454ec5e65e13edb31edc24c1a47d196a83a.zip
gdb-experiment.go: fix .text section header
-rw-r--r--gdb-experiment.go2
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++