• Joel Sing's avatar
    cgo: enable cgo on openbsd · 708db790
    Joel Sing authored
    Enable cgo on OpenBSD.
    
    The OpenBSD ld.so(1) does not currently support PT_TLS sections. Work
    around this by fixing up the TCB that has been provided by librthread
    and reallocating a TCB with additional space for TLS. Also provide a
    wrapper for pthread_create, allowing zeroed TLS to be allocated for
    threads created externally to Go.
    
    Joint work with Shenghou Ma (minux).
    
    Requires change 6846064.
    
    Fixes #3205.
    
    R=golang-dev, minux.ma, iant, rsc, iant
    CC=golang-dev
    https://golang.org/cl/6853059
    708db790
Name
Last commit
Last update
..
gmp Loading commit data...
life Loading commit data...
stdio Loading commit data...
test Loading commit data...
testso Loading commit data...