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:32 +0000 |
commit | dfbf568c9f71d5fadfebaa206ab8341168f582d9 (patch) | |
tree | 4aec4b68c37ebf51c0d6740b68d1a9d9730c772a /src/runtime/rt0_linux_mips64x.s | |
parent | beeabbcb2501c89db48a60681183ad161763db79 (diff) | |
download | go-dfbf568c9f71d5fadfebaa206ab8341168f582d9.tar.gz go-dfbf568c9f71d5fadfebaa206ab8341168f582d9.zip |
runtime: use NOFRAME on mips and mips64
This replaces frame size -4/-8 with the NOFRAME flag in mips and
mips64 assembly.
This was automated with:
sed -i -e 's/\(^TEXT.*[A-Z]\),\( *\)\$-[84]/\1|NOFRAME,\2$0/' $(find -name '*_mips*.s')
Plus a manual fix to mkduff.go.
The go binary is identical on both architectures before and after this
change.
Change-Id: I0310384d1a584118c41d1cd3a042bb8ea7227efb
Reviewed-on: https://go-review.googlesource.com/92044
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_mips64x.s')
-rw-r--r-- | src/runtime/rt0_linux_mips64x.s | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/rt0_linux_mips64x.s b/src/runtime/rt0_linux_mips64x.s index 0891c68c69..55506755df 100644 --- a/src/runtime/rt0_linux_mips64x.s +++ b/src/runtime/rt0_linux_mips64x.s @@ -13,7 +13,7 @@ TEXT _rt0_mips64_linux(SB),NOSPLIT,$0 TEXT _rt0_mips64le_linux(SB),NOSPLIT,$0 JMP _main<>(SB) -TEXT _main<>(SB),NOSPLIT,$-8 +TEXT _main<>(SB),NOSPLIT|NOFRAME,$0 // In a statically linked binary, the stack contains argc, // argv as argc string pointers followed by a NULL, envv as a // sequence of string pointers followed by a NULL, and auxv. @@ -26,7 +26,7 @@ TEXT _main<>(SB),NOSPLIT,$-8 ADDV $8, R29, R5 // argv JMP main(SB) -TEXT main(SB),NOSPLIT,$-8 +TEXT main(SB),NOSPLIT|NOFRAME,$0 // in external linking, glibc jumps to main with argc in R4 // and argv in R5 |