aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/rt0_android_arm64.s
diff options
context:
space:
mode:
authorAustin Clements <austin@google.com>2018-01-25 12:15:23 -0500
committerAustin Clements <austin@google.com>2018-02-12 21:41:31 +0000
commitbeeabbcb2501c89db48a60681183ad161763db79 (patch)
treeb9796eef954231829bc5c2c09498ac71e1e430a7 /src/runtime/rt0_android_arm64.s
parenta046caa1e8c6cb2e21f438c672c0c1a96eebfff6 (diff)
downloadgo-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_android_arm64.s')
-rw-r--r--src/runtime/rt0_android_arm64.s4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/rt0_android_arm64.s b/src/runtime/rt0_android_arm64.s
index 9378213dac..4135bf07d5 100644
--- a/src/runtime/rt0_android_arm64.s
+++ b/src/runtime/rt0_android_arm64.s
@@ -4,13 +4,13 @@
#include "textflag.h"
-TEXT _rt0_arm64_android(SB),NOSPLIT,$-8
+TEXT _rt0_arm64_android(SB),NOSPLIT|NOFRAME,$0
MOVD $_rt0_arm64_linux(SB), R4
B (R4)
// When building with -buildmode=c-shared, this symbol is called when the shared
// library is loaded.
-TEXT _rt0_arm64_android_lib(SB),NOSPLIT,$-8
+TEXT _rt0_arm64_android_lib(SB),NOSPLIT|NOFRAME,$0
MOVW $1, R0 // argc
MOVD $_rt0_arm64_android_argv(SB), R1 // **argv
MOVD $_rt0_arm64_linux_lib(SB), R4