all: add GOOS=android
As android and linux have significant overlap, and
because build tags are a poor way to represent an
OS target, this CL introduces an exception into
go/build: linux is treated as a synonym for android
when matching files.
http://golang.org/s/go14android
https://groups.google.com/forum/#!topic/golang-dev/P1ATVp1mun0
LGTM=rsc, minux
R=golang-codereviews, mikioh.mikioh, dave, aram, minux, gobot, rsc, aram.h, elias.naur, iant
CC=golang-codereviews, rsc
https://golang.org/cl/105270043
2014-07-01 15:21:50 -06:00
|
|
|
// Copyright 2014 The Go Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
2014-09-04 21:05:18 -06:00
|
|
|
#include "textflag.h"
|
all: add GOOS=android
As android and linux have significant overlap, and
because build tags are a poor way to represent an
OS target, this CL introduces an exception into
go/build: linux is treated as a synonym for android
when matching files.
http://golang.org/s/go14android
https://groups.google.com/forum/#!topic/golang-dev/P1ATVp1mun0
LGTM=rsc, minux
R=golang-codereviews, mikioh.mikioh, dave, aram, minux, gobot, rsc, aram.h, elias.naur, iant
CC=golang-codereviews, rsc
https://golang.org/cl/105270043
2014-07-01 15:21:50 -06:00
|
|
|
|
2018-01-25 10:15:23 -07:00
|
|
|
TEXT _rt0_arm_android(SB),NOSPLIT|NOFRAME,$0
|
all: add GOOS=android
As android and linux have significant overlap, and
because build tags are a poor way to represent an
OS target, this CL introduces an exception into
go/build: linux is treated as a synonym for android
when matching files.
http://golang.org/s/go14android
https://groups.google.com/forum/#!topic/golang-dev/P1ATVp1mun0
LGTM=rsc, minux
R=golang-codereviews, mikioh.mikioh, dave, aram, minux, gobot, rsc, aram.h, elias.naur, iant
CC=golang-codereviews, rsc
https://golang.org/cl/105270043
2014-07-01 15:21:50 -06:00
|
|
|
MOVW (R13), R0 // argc
|
|
|
|
MOVW $4(R13), R1 // argv
|
|
|
|
MOVW $_rt0_arm_linux1(SB), R4
|
|
|
|
B (R4)
|
2015-04-06 16:43:25 -06:00
|
|
|
|
|
|
|
TEXT _rt0_arm_android_lib(SB),NOSPLIT,$0
|
2015-04-03 10:48:51 -06:00
|
|
|
MOVW $1, R0 // argc
|
|
|
|
MOVW $_rt0_arm_android_argv(SB), R1 // **argv
|
2017-10-13 14:52:57 -06:00
|
|
|
B _rt0_arm_lib(SB)
|
2015-04-03 10:48:51 -06:00
|
|
|
|
|
|
|
DATA _rt0_arm_android_argv+0x00(SB)/4,$_rt0_arm_android_argv0(SB)
|
2016-11-28 16:03:16 -07:00
|
|
|
DATA _rt0_arm_android_argv+0x04(SB)/4,$0 // end argv
|
|
|
|
DATA _rt0_arm_android_argv+0x08(SB)/4,$0 // end envv
|
|
|
|
DATA _rt0_arm_android_argv+0x0c(SB)/4,$0 // end auxv
|
|
|
|
GLOBL _rt0_arm_android_argv(SB),NOPTR,$0x10
|
2015-04-03 10:48:51 -06:00
|
|
|
|
|
|
|
DATA _rt0_arm_android_argv0(SB)/8, $"gojni"
|
|
|
|
GLOBL _rt0_arm_android_argv0(SB),RODATA,$8
|