• Alex Brainman's avatar
    cmd/link: actually generate .debug_gdb_scripts section on windows · 1d44c4e3
    Alex Brainman authored
    Adjust finddebugruntimepath to look for runtime/debug.go file
    instead of runtime/runtime.go. This actually finds runtime.GOMAXPROCS
    in every Go executable (including windows).
    
    I also included "-Wl,-T,fix_debug_gdb_scripts.ld" parameter to gcc
    invocation on windows to work around gcc bug (see #20183 for details).
    
    This CL only fixes windows -buildmode=exe, buildmode=c-archive
    is still broken.
    
    Thanks to Egon Elbre and Nick Clifton for investigation.
    
    Fixes #20183
    Fixes #20218
    
    Change-Id: I5369a4db3913226aef3d9bd6317446856b0a1c34
    Reviewed-on: https://go-review.googlesource.com/43331Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
    1d44c4e3
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...