Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(904)

Issue 69170045: code review 69170045: cmd/ld, liblink, pkg/net, pkg/os, pkg/runtime: add supp...

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 8 months ago by elias.naur
Modified:
11 years, 6 months ago
CC:
iant
Visibility:
Public.

Description

cmd/ld, liblink, pkg/net, pkg/os, pkg/runtime: add support for cgo enabled Android binaries. Android is too similar to Linux to warrant a separate GOOS at this point. Instead, this CL introduces the "android" tag in the standard library to compensate for the differences: - os.TempDir defaults to /data/local/tmp/ instead of /tmp (pkg/os) - getaddrinfo only supports AI_CANONNAME (pkg/net) - TLS emulation (pkg/runtime) To support the TLS emulation implemented by pkg/runtime/asm_tls_android_arm.s and pkg/runtime/cgo/gcc_android.c, the -H android option has been added to cmd/ld. -H android is similar to -H linux with the addition that runtime.tlsgm is turned into a regular variable and that TLS relocations are turned into regular address relocations. misc/cgo/android contains a small test program using an Android specific library through cgo.

Patch Set 1 #

Patch Set 2 : diff -r d8ecadba049e https://code.google.com/p/go #

Patch Set 3 : diff -r d8ecadba049e https://code.google.com/p/go #

Patch Set 4 : diff -r d8ecadba049e https://code.google.com/p/go #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+289 lines, -52 lines) Patch
A misc/cgo/android/README View 1 2 1 chunk +13 lines, -0 lines 0 comments Download
A misc/cgo/android/test.go View 1 2 1 chunk +15 lines, -0 lines 0 comments Download
M src/cmd/ld/data.c View 1 1 chunk +5 lines, -0 lines 0 comments Download
M src/cmd/ld/doc.go View 1 1 chunk +2 lines, -0 lines 0 comments Download
M src/cmd/ld/elf.c View 1 1 chunk +3 lines, -1 line 0 comments Download
M src/cmd/ld/lib.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M src/cmd/ld/pobj.c View 1 1 chunk +7 lines, -0 lines 0 comments Download
M src/cmd/ld/symtab.c View 1 1 chunk +5 lines, -1 line 0 comments Download
M src/liblink/sym.c View 1 1 chunk +1 line, -0 lines 0 comments Download
A src/pkg/net/cgo_android.go View 1 1 chunk +16 lines, -0 lines 0 comments Download
M src/pkg/net/cgo_linux.go View 1 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/os/file_unix.go View 1 1 chunk +0 lines, -9 lines 0 comments Download
A src/pkg/os/tmpdir_android.go View 1 1 chunk +16 lines, -0 lines 0 comments Download
A src/pkg/os/tmpdir_unix.go View 1 1 chunk +16 lines, -0 lines 1 comment Download
M src/pkg/os/user/lookup_stubs.go View 1 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/os/user/lookup_unix.go View 1 1 chunk +1 line, -1 line 1 comment Download
M src/pkg/runtime/asm_arm.s View 1 2 chunks +7 lines, -37 lines 0 comments Download
A src/pkg/runtime/asm_tls_android_arm.s View 1 1 chunk +35 lines, -0 lines 0 comments Download
A src/pkg/runtime/asm_tls_arm.s View 1 1 chunk +47 lines, -0 lines 0 comments Download
M src/pkg/runtime/cgo/cgo.go View 1 1 chunk +1 line, -1 line 0 comments Download
A src/pkg/runtime/cgo/cgo_android.c View 1 1 chunk +13 lines, -0 lines 0 comments Download
A src/pkg/runtime/cgo/gcc_android.c View 1 1 chunk +81 lines, -0 lines 0 comments Download
M src/pkg/runtime/runtime.c View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 5
elias.naur
Hello golang-codereviews@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go
11 years, 8 months ago (2014-02-26 19:17:42 UTC) #1
bradfitz
R=rsc,iant https://codereview.appspot.com/69170045/diff/40001/src/pkg/os/tmpdir_unix.go File src/pkg/os/tmpdir_unix.go (right): https://codereview.appspot.com/69170045/diff/40001/src/pkg/os/tmpdir_unix.go#newcode5 src/pkg/os/tmpdir_unix.go:5: // +build darwin dragonfly freebsd !android,linux nacl netbsd ...
11 years, 8 months ago (2014-02-26 19:24:16 UTC) #2
elias.naur
On 2014/02/26 19:24:16, bradfitz wrote: > R=rsc,iant > > https://codereview.appspot.com/69170045/diff/40001/src/pkg/os/tmpdir_unix.go > File src/pkg/os/tmpdir_unix.go (right): > ...
11 years, 8 months ago (2014-02-26 19:39:37 UTC) #3
rsc
I'm sorry, but no. This is not on the roadmap for Go 1.3 and the ...
11 years, 8 months ago (2014-02-26 20:50:20 UTC) #4
rsc
11 years, 6 months ago (2014-04-17 02:34:06 UTC) #5
R=close Please run 'hg mail' after the Go 1.3 release is out and it will reopen this CL for us. Thanks.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b