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_linux_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_linux_arm64.s')
-rw-r--r-- | src/runtime/rt0_linux_arm64.s | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/rt0_linux_arm64.s b/src/runtime/rt0_linux_arm64.s index d01d415945..e81e598d3a 100644 --- a/src/runtime/rt0_linux_arm64.s +++ b/src/runtime/rt0_linux_arm64.s @@ -4,7 +4,7 @@ #include "textflag.h" -TEXT _rt0_arm64_linux(SB),NOSPLIT,$-8 +TEXT _rt0_arm64_linux(SB),NOSPLIT|NOFRAME,$0 MOVD 0(RSP), R0 // argc ADD $8, RSP, R1 // argv BL main(SB) @@ -88,7 +88,7 @@ DATA _rt0_arm64_linux_lib_argv<>(SB)/8, $0 GLOBL _rt0_arm64_linux_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: |