• Hyang-Ah Hana Kim's avatar
    runtime, cmd: TLS setup for android/amd64. · dfc86498
    Hyang-Ah Hana Kim authored
    Android linker does not handle TLS for us. We set up the TLS slot
    for g, as darwin/386,amd64 handle instead. This is disgusting and
    fragile. We will eventually fix this ugly hack by taking advantage
    of the recent TLS IE model implementation. (Instead of referencing
    an GOT entry, make the code sequence look into the TLS variable that
    holds the offset.)
    
    The TLS slot for g in android/amd64 assumes a fixed offset from %fs.
    See runtime/cgo/gcc_android_amd64.c for details.
    
    For golang/go#10743
    
    Change-Id: I1a3fc207946c665515f79026a56ea19134ede2dd
    Reviewed-on: https://go-review.googlesource.com/15991Reviewed-by: 's avatarDavid Crawshaw <crawshaw@golang.org>
    dfc86498
rt0_android_amd64.s 1.04 KB