go/src/debug/pe
Alex Brainman 1d44c4e378 cmd/link: actually generate .debug_gdb_scripts section on windows
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/43331
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2017-05-15 06:16:19 +00:00
..
testdata debug/pe: handle files with no string table 2016-06-19 05:18:09 +00:00
file.go cmd/dist: use debug/pe directly for cmd/link 2016-10-17 15:22:17 +00:00
file_cgo_test.go cmd/link: write dwarf sections 2017-03-01 04:51:03 +00:00
file_test.go cmd/link: actually generate .debug_gdb_scripts section on windows 2017-05-15 06:16:19 +00:00
pe.go debug/pe: move some code into section.go and symbol.go 2016-04-20 04:46:59 +00:00
section.go cmd/dist: use debug/pe directly for cmd/link 2016-10-17 15:22:17 +00:00
string.go all: make copyright headers consistent with one space after period 2016-11-04 20:46:25 +00:00
symbol.go debug/pe: do not create symbol table if FileHeader.PointerToSymbolTable is 0 2016-11-17 07:55:06 +00:00