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

Unified Diff: src/cmd/ld/pobj.c

Issue 69170045: code review 69170045: cmd/ld, liblink, pkg/net, pkg/os, pkg/runtime: add supp...
Patch Set: diff -r d8ecadba049e https://code.google.com/p/go Created 11 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/cmd/ld/pobj.c
===================================================================
--- a/src/cmd/ld/pobj.c
+++ b/src/cmd/ld/pobj.c
@@ -141,6 +141,13 @@
if (headstring == nil)
headstring = headstr(HEADTYPE);
+ // On Android, use external linking to enable TLS
+ // emulation.
+ if(strcmp(headstring, "android") == 0) {
+ linkmode = LinkExternal;
+ isandroid = 1;
+ }
+
archinit();
ctxt->linkmode = linkmode;
ctxt->debugfloat = debug['F'];
« no previous file with comments | « src/cmd/ld/lib.h ('k') | src/cmd/ld/symtab.c » ('j') | src/pkg/os/tmpdir_unix.go » ('J')

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