| 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']; |