• Christopher Nelson's avatar
    cmd/go: fix -buildmode=c-archive should work on windows · ed8f0e5c
    Christopher Nelson authored
    Add supporting code for runtime initialization, including both
    32- and 64-bit x86 architectures.
    
    Add .ctors section on Windows to PE .o files, and INITENTRY to .ctors
    section to plug in to the GCC C/C++ startup initialization mechanism.
    This allows the Go runtime to initialize itself. Add .text section
    symbol for .ctor relocations. Note: This is unlikely to be useful for
    MSVC-based toolchains.
    
    Fixes #13494
    
    Change-Id: I4286a96f70e5f5228acae88eef46e2bed95813f3
    Reviewed-on: https://go-review.googlesource.com/18057Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
    Run-TryBot: Ian Lance Taylor <iant@golang.org>
    ed8f0e5c
Name
Last commit
Last update
..
windows Loading commit data...
aprof.go Loading commit data...
callback.go Loading commit data...
cgo.go Loading commit data...
crash.go Loading commit data...
deadlock.go Loading commit data...
dll_windows.go Loading commit data...
dropm.go Loading commit data...
dropm_stub.go Loading commit data...
exec.go Loading commit data...
main.go Loading commit data...
threadpanic.go Loading commit data...
threadpanic_unix.c Loading commit data...
threadpanic_windows.c Loading commit data...
threadprof.go Loading commit data...
traceback.go Loading commit data...