• 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
api Loading commit data...
doc Loading commit data...
include Loading commit data...
lib Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...