• Ian Lance Taylor's avatar
    lib9, cmd/ld: fixes for cross-linking on a Windows host · 5a40b568
    Ian Lance Taylor authored
    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
    5a40b568
Name
Last commit
Last update
..
data.c Loading commit data...
decodesym.c Loading commit data...
doc.go Loading commit data...
dwarf.c Loading commit data...
dwarf.h Loading commit data...
dwarf_defs.h Loading commit data...
elf.c Loading commit data...
elf.h Loading commit data...
go.c Loading commit data...
ldelf.c Loading commit data...
ldmacho.c Loading commit data...
ldpe.c Loading commit data...
lib.c Loading commit data...
lib.h Loading commit data...
macho.c Loading commit data...
macho.h Loading commit data...
pcln.c Loading commit data...
pe.c Loading commit data...
pe.h Loading commit data...
pobj.c Loading commit data...
symtab.c Loading commit data...
textflag.h Loading commit data...