• Damien Neil's avatar
    cmd/go, cmd/link: make builds deterministic · 5bbb98df
    Damien Neil authored
    Add the following flags when supported by the compiler:
      -gno-record-gcc-switches
      -fdebug-prefix-map=$WORK=/tmp/go-build
    
    Add an empty NAME symbol to the ELF .symtab. GNU ld will add a NAME
    symbol when one is not present; including one of our own prevents it
    from adding a reference to the link tempdir.
    
    Fixes #13247 for compilers that support -fdebug-prefix-map. (gcc, clang
    in the near future.)
    
    Change-Id: I221c71fc59cd23ee8c99bcc038793ff4623c9ffc
    Reviewed-on: https://go-review.googlesource.com/19363Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
    Run-TryBot: Damien Neil <dneil@google.com>
    5bbb98df
Name
Last commit
Last update
..
addr2line Loading commit data...
api Loading commit data...
asm Loading commit data...
cgo Loading commit data...
compile Loading commit data...
cover Loading commit data...
dist Loading commit data...
doc Loading commit data...
fix Loading commit data...
go Loading commit data...
gofmt Loading commit data...
internal Loading commit data...
link Loading commit data...
newlink Loading commit data...
nm Loading commit data...
objdump Loading commit data...
pack Loading commit data...
pprof Loading commit data...
trace Loading commit data...
vet Loading commit data...
yacc Loading commit data...