diff options
author | Austin Clements <austin@google.com> | 2018-01-25 12:15:23 -0500 |
---|---|---|
committer | Austin Clements <austin@google.com> | 2018-02-12 21:41:31 +0000 |
commit | beeabbcb2501c89db48a60681183ad161763db79 (patch) | |
tree | b9796eef954231829bc5c2c09498ac71e1e430a7 /src/runtime/rt0_darwin_arm64.s | |
parent | a046caa1e8c6cb2e21f438c672c0c1a96eebfff6 (diff) | |
download | go-beeabbcb2501c89db48a60681183ad161763db79.tar.gz go-beeabbcb2501c89db48a60681183ad161763db79.zip |
runtime: use NOFRAME on arm64
This replaces frame size -8 with the NOFRAME flag in arm64 assembly.
This was automated with:
sed -i -e 's/\(^TEXT.*[A-Z]\),\( *\)\$-8/\1|NOFRAME,\2$0/' $(find -name '*_arm64.s')
Plus a manual fix to mkduff.go.
The go binary is identical before and after this change.
Change-Id: I0310384d1a584118c41d1cd3a042bb8ea7227efa
Reviewed-on: https://go-review.googlesource.com/92043
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Diffstat (limited to 'src/runtime/rt0_darwin_arm64.s')
-rw-r--r-- | src/runtime/rt0_darwin_arm64.s | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/rt0_darwin_arm64.s b/src/runtime/rt0_darwin_arm64.s index f607683d2c..960de06044 100644 --- a/src/runtime/rt0_darwin_arm64.s +++ b/src/runtime/rt0_darwin_arm64.s @@ -6,7 +6,7 @@ // No need for _rt0_arm64_darwin as darwin/arm64 only // supports external linking. -TEXT _rt0_arm64_darwin(SB),NOSPLIT,$-8 +TEXT _rt0_arm64_darwin(SB),NOSPLIT|NOFRAME,$0 MOVD $42, R0 MOVD $1, R16 // SYS_exit SVC $0x80 @@ -80,7 +80,7 @@ GLOBL _rt0_arm64_darwin_lib_argc<>(SB),NOPTR, $8 DATA _rt0_arm64_darwin_lib_argv<>(SB)/8, $0 GLOBL _rt0_arm64_darwin_lib_argv<>(SB),NOPTR, $8 -TEXT main(SB),NOSPLIT,$-8 +TEXT main(SB),NOSPLIT|NOFRAME,$0 MOVD $runtime·rt0_go(SB), R2 BL (R2) exit: |