cmd/7l: add the ARM64 linker

Only internal linking without cgo is supported for now.

Change-Id: I91eb1572c1ccc805db62fc4c29080df98797d51a
Reviewed-on: https://go-review.googlesource.com/7048
Reviewed-by: Minux Ma <minux@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
This commit is contained in:
Aram Hăvărneanu 2015-03-08 14:14:53 +01:00
parent 18d9ddc35c
commit 3d1ce27ba5
9 changed files with 65 additions and 605 deletions

View file

@ -1064,7 +1064,7 @@ var (
// allow stack checks here.
func haslinkregister() bool {
return Thearch.Thechar == '5' || Thearch.Thechar == '9'
return Thearch.Thechar == '5' || Thearch.Thechar == '9' || Thearch.Thechar == '7'
}
func callsize() int {
@ -1183,6 +1183,7 @@ func stkcheck(up *Chain, depth int) int {
// Direct call.
case R_CALL,
R_CALLARM,
R_CALLARM64,
R_CALLPOWER:
ch.limit = int(int32(limit) - pcsp.value - int32(callsize()))