1
0
mirror of https://github.com/golang/go synced 2024-10-04 04:31:21 -06:00
go/src/cmd
Ian Lance Taylor 5a40b568d0 lib9, cmd/ld: fixes for cross-linking on a Windows host
This fixes a couple of problems that occur when the linker
removes its temporary directory on Windows.  The linker only
creates and removes a temporary directory when doing external
linking.  Windows does not yet support external linking.
Therefore, these problems are only seen when using a
cross-compiler hosted on Windows.

In lib9, FindFirstFileW returns just the file name, not the
full path name.  Don't assume that we will find a slash.
Changed the code to work either way just in case.

In ld, Windows requires that files be closed before they are
removed, so close the output file before we might try to
remove it.

Fixes #8723.

LGTM=alex.brainman
R=golang-codereviews, alex.brainman
CC=golang-codereviews
https://golang.org/cl/141690043
2014-09-18 17:27:26 -07:00
..
5a build: adjustments for move from src/pkg to src 2014-09-08 00:06:45 -04:00
5c cmd/cc, cmd/gc: stop generating 'argsize' PCDATA 2014-09-12 07:51:00 -04:00
5g cmd/5g, cmd/8g: make 'out of registers' a fatal error 2014-09-16 13:16:43 -04:00
5l cmd/5l, cmd/6l, cmd/8l: fix nacl binary corruption bug 2014-08-27 22:53:28 -04:00
6a build: adjustments for move from src/pkg to src 2014-09-08 00:06:45 -04:00
6c cmd/cc, cmd/gc: stop generating 'argsize' PCDATA 2014-09-12 07:51:00 -04:00
6g cmd/cc, cmd/gc: stop generating 'argsize' PCDATA 2014-09-12 07:51:00 -04:00
6l cmd/5l, cmd/6l, cmd/8l: fix nacl binary corruption bug 2014-08-27 22:53:28 -04:00
8a build: adjustments for move from src/pkg to src 2014-09-08 00:06:45 -04:00
8c cmd/cc, cmd/gc: stop generating 'argsize' PCDATA 2014-09-12 07:51:00 -04:00
8g cmd/5g, cmd/8g: make 'out of registers' a fatal error 2014-09-16 13:16:43 -04:00
8l cmd/5l, cmd/6l, cmd/8l: fix nacl binary corruption bug 2014-08-27 22:53:28 -04:00
addr2line cmd/addr2line, cmd/nm: factor object reading into cmd/internal/objfile 2014-08-07 12:33:06 -04:00
api runtime: remove untyped allocation of ParFor 2014-09-16 11:03:11 -04:00
cc runtime: get rid of copyable check - all G frames are copyable. 2014-09-11 13:46:58 -07:00
cgo build: adjustments for move from src/pkg to src 2014-09-08 00:06:45 -04:00
dist runtime: remove duplicated Go constants 2014-09-16 10:22:15 -04:00
fix build: adjustments for move from src/pkg to src 2014-09-08 00:06:45 -04:00
gc cmd/gc: say 'non-constant array bound' instead of 'invalid array bound' 2014-09-16 10:21:54 -04:00
go cmd/go: use pkg-config include pathes in swig and don't double compile c++ files. 2014-09-16 15:06:52 -07:00
gofmt build: adjustments for move from src/pkg to src 2014-09-08 00:06:45 -04:00
internal/objfile cmd/internal/objfile: fix dissassembly of Plan 9 object files 2014-08-28 16:01:31 -07:00
ld lib9, cmd/ld: fixes for cross-linking on a Windows host 2014-09-18 17:27:26 -07:00
link cmd/{ld,link,objdump}, runtime, debug/gosym: move linker-defined symbols into runtime package 2014-08-27 20:15:05 -04:00
nm build: adjustments for move from src/pkg to src 2014-09-08 00:06:45 -04:00
objdump cmd/{addr2line,objdump}: fix finding pclntab and symtab for pe and plan9obj 2014-08-27 18:01:17 -07:00
pack cmd/pack: skip test on android (no Go tool) 2014-07-08 13:45:06 -04:00
yacc cmd/yacc: move cmd/yacc/expr to cmd/yacc/testdata/expr 2014-09-06 15:27:52 -04:00