go/src
David Lazar 301149b9e4 cmd/internal/obj: avoid duplicate file name symbols
The meaning of Version=1 was overloaded: it was reserved for file name
symbols (to avoid conflicts with non-file name symbols), but was also
used to mean "give me a fresh version number for this symbol."

With the new inlining tree, the same file name symbol can appear in
multiple entries, but each one would become a distinct symbol with its
own version number.

Now, we avoid duplicating symbols by using Version=0 for file name
symbols and we avoid conflicts with other symbols by prefixing the
symbol name with "gofile..".

Change-Id: I8d0374053b8cdb6a9ca7fb71871b69b4dd369a9c
Reviewed-on: https://go-review.googlesource.com/37234
Run-TryBot: David Lazar <lazard@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
Reviewed-by: Russ Cox <rsc@golang.org>
2017-03-03 21:29:36 +00:00
..
archive time: record monotonic clock reading in time.Now, for more accurate comparisons 2017-02-03 19:04:52 +00:00
bufio bufio: remove unnecessary "continue" 2016-10-24 14:49:44 +00:00
builtin builtin: clarify that make(map[K]V, n) allocates space for n elements 2016-09-10 12:57:37 +00:00
bytes bytes: make bytes.Buffer cache-friendly 2017-02-28 05:19:38 +00:00
cmd cmd/internal/obj: avoid duplicate file name symbols 2017-03-03 21:29:36 +00:00
compress compress/flate: use math/bits.Reverse8/16 instead of local implementation 2017-03-01 00:15:32 +00:00
container container/list: silence vet warnings 2016-08-16 14:35:37 +00:00
context context: document that Err is unspecified before Done 2017-02-22 17:42:28 +00:00
crypto crypto/tls: make Config.Clone also clone the GetClientCertificate field 2017-03-02 19:43:07 +00:00
database/sql database/sql: convert test timeouts to explicit waits with checks 2017-02-13 19:05:28 +00:00
debug cmd/link: write dwarf sections 2017-03-01 04:51:03 +00:00
encoding encoding/pem: refuse extra data on ending line 2017-03-01 19:23:09 +00:00
errors all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
expvar expvar: add benchmarks for steady-state Map Add calls 2017-02-14 22:11:35 +00:00
flag flag: arrange for FlagSet.Usage to be non-nil by default 2016-10-26 16:13:40 +00:00
fmt fmt: add short note about %g precision 2017-02-21 19:02:43 +00:00
go net/http/httptest: add Client and Certificate methods to Server 2017-03-03 21:02:17 +00:00
hash hash/crc32: use sub-benchmarks 2017-02-08 17:17:08 +00:00
html html/template: lock in application/json as valid JS test 2016-12-04 03:59:31 +00:00
image image/gif: handle an extra data sub-block byte. 2017-03-02 23:49:32 +00:00
index/suffixarray index/suffixarray: add Lookup example 2016-08-21 01:10:22 +00:00
internal runtime/pprof/internal/profile: move internal/pprof/profile here 2017-02-24 20:45:21 +00:00
io io: fix test when MultiReader is inlined with -l=3 2017-02-02 18:56:20 +00:00
log all: don't call t.Fatal from a goroutine 2016-11-15 15:13:48 +00:00
math math/bits: move left-over functionality from bits_impl.go to bits.go 2017-02-28 23:50:47 +00:00
mime mime: add benchmarks for TypeByExtension and ExtensionsByType 2017-02-14 23:02:07 +00:00
net net/http/httptest: add Client and Certificate methods to Server 2017-03-03 21:02:17 +00:00
os os: add OpenFile example for appending data 2017-03-01 14:48:21 +00:00
path path/filepath: add test for directory junction walk 2017-02-12 23:33:01 +00:00
plugin plugin: remove unnecessary import "C" from example 2017-02-09 18:32:53 +00:00
reflect reflect: fix bucketOf to only look at ptrdata entries in gcdata 2017-02-22 02:19:48 +00:00
regexp regexp: avoid alloc in QuoteMeta when not quoting 2016-10-19 07:09:08 +00:00
runtime runtime: use inlining tables to generate accurate tracebacks 2017-03-03 21:29:34 +00:00
sort sort: new example: Sorting slices with sort.SliceStable 2017-02-22 21:23:12 +00:00
strconv strconv: strip \r in raw strings passed to Unquote 2016-10-17 18:34:02 +00:00
strings strings: fix handling of invalid UTF-8 sequences in Map 2017-02-28 22:50:53 +00:00
sync sync/atomic: fix mipsx frame sizes 2017-02-21 18:42:47 +00:00
syscall syscall: fix linux/mipsx ret value FP offsets for Syscall9 2017-02-21 18:43:02 +00:00
testing testing: fix Benchmark() to start at 1 iteration, not 100 2017-03-01 11:06:34 +00:00
text text/template: fix method lookup on addressable nil pointer 2017-02-09 14:58:40 +00:00
time time: strip monotonic time in t.Round, t.Truncate 2017-03-02 13:52:08 +00:00
unicode unicode/utf8: optimize ValidRune 2016-10-26 23:02:52 +00:00
unsafe unsafe: remove incorrect type conversion in docs 2016-11-07 18:54:14 +00:00
vendor/golang_org/x vendor: import golang.org/x/net/proxy 2017-03-02 01:28:16 +00:00
all.bash
all.bat
all.rc
androidtest.bash androidtest.bash: use go list to get pkg dir 2016-08-29 15:24:39 +00:00
bootstrap.bash all: make copyright headers consistent with one space after period 2016-05-02 13:43:18 +00:00
buildall.bash buildall.bash: clarify target selection 2017-02-04 04:34:36 +00:00
clean.bash
clean.bat
clean.rc
cmp.bash all: make copyright headers consistent with one space after period 2016-11-04 20:46:25 +00:00
iostest.bash
make.bash cmd/dist, cmd/go: add environment variable override for pkg-config 2016-10-03 18:08:01 +00:00
make.bat build: unset GOBIN during build 2016-05-19 18:40:53 +00:00
Make.dist
make.rc build: fix cross-compile on Plan 9 2016-11-22 01:32:28 +00:00
naclmake.bash src: split nacltest.bash into naclmake.bash and keep nacltest.bash 2016-04-12 02:03:34 +00:00
nacltest.bash all: make copyright headers consistent with one space after period 2016-05-02 13:43:18 +00:00
race.bash cmd/dist: make test default to --no-rebuild 2015-12-29 15:20:00 +00:00
race.bat cmd/dist: make test default to --no-rebuild 2015-12-29 15:20:00 +00:00
run.bash run.bash: set GOPATH to $GOROOT/nil before running tests 2017-02-24 18:18:30 +00:00
run.bat build: unset GOBIN during build 2016-05-19 18:40:53 +00:00
run.rc build: unset GOBIN during build 2016-05-19 18:40:53 +00:00