aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/debug
diff options
context:
space:
mode:
authorKeith Randall <khr@golang.org>2013-08-07 12:20:05 -0700
committerKeith Randall <khr@golang.org>2013-08-07 12:20:05 -0700
commit0273dc131e4d5c63875824784e4240d0c8bb23bc (patch)
tree4ec06590759061b61ed0035de24de9dfd6c9c034 /src/pkg/debug
parenta08b1d13eaff45b0506369269ee9c597f3355646 (diff)
downloadgo-0273dc131e4d5c63875824784e4240d0c8bb23bc.tar.xz
runtime: convert .s textflags from numbers to symbolic constants.
Remove NOPROF/DUPOK from everything. Edits done with a script, except pclinetest.asm which depended on the DUPOK flag on main(). R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/12613044
Diffstat (limited to 'src/pkg/debug')
-rw-r--r--src/pkg/debug/gosym/pclinetest.asm16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/pkg/debug/gosym/pclinetest.asm b/src/pkg/debug/gosym/pclinetest.asm
index 868afc6604..b9ee9c0a50 100644
--- a/src/pkg/debug/gosym/pclinetest.asm
+++ b/src/pkg/debug/gosym/pclinetest.asm
@@ -1,4 +1,4 @@
-TEXT linefrompc(SB),7,$0 // Each byte stores its line delta
+TEXT linefrompc(SB),4,$0 // Each byte stores its line delta
BYTE $2;
BYTE $1;
BYTE $1; BYTE $0;
@@ -28,7 +28,7 @@ BYTE $2;
BYTE $2;
BYTE $255;
-TEXT pcfromline(SB),7,$0 // Each record stores its line delta, then n, then n more bytes
+TEXT pcfromline(SB),4,$0 // Each record stores its line delta, then n, then n more bytes
BYTE $32; BYTE $0;
BYTE $1; BYTE $1; BYTE $0;
BYTE $1; BYTE $0;
@@ -47,14 +47,12 @@ BYTE $3; BYTE $3; BYTE $0; BYTE $0; BYTE $0;
BYTE $4; BYTE $3; BYTE $0; BYTE $0; BYTE $0;
BYTE $255;
-TEXT main(SB),7,$0
- // Prevent GC of our test symbols
- CALL linefrompc(SB)
- CALL pcfromline(SB)
-
// Keep the linker happy
-TEXT main·main(SB),7,$0
+TEXT main·main(SB),4,$0
RET
-TEXT main·init(SB),7,$0
+TEXT main·init(SB),4,$0
+ // Prevent GC of our test symbols
+ CALL linefrompc(SB)
+ CALL pcfromline(SB)
RET