1
0
mirror of https://github.com/golang/go synced 2024-10-04 09:21:21 -06:00
go/src/cmd/6g
Russ Cox 758f2bc556 eliminate the package global name space assumption in object files
5g/6g/8g: add import statements to export metadata, mapping package path to package name.
	recognize "" as the path of the package in export metadata.
	use "" as the path of the package in object symbol names.

5c/6c/8c, 5a/6a/8a: rewrite leading . to "". so that ·Sin means Sin in this package.

5l/6l/8l: rewrite "" in symbol names as object files are read.

gotest: handle new symbol names.

gopack: handle new import lines in export metadata.

Collectively, these changes eliminate the assumption of a global
name space in the object file formats.  Higher level pieces such as
reflect and the computation of type hashes still depend on the
assumption; we're not done yet.

R=ken2, r, ken3
CC=golang-dev
https://golang.org/cl/186263
2010-01-22 17:06:20 -08:00
..
cgen.c Don't check array bounds if we have been told not to. 2010-01-15 13:51:57 -08:00
doc.go tweak documentation of commands 2009-11-09 11:45:15 -08:00
galign.c some array init bugs 2009-05-21 15:44:06 -07:00
gg.h bug162, over and over 2009-10-20 08:03:43 -07:00
ggen.c eliminate the package global name space assumption in object files 2010-01-22 17:06:20 -08:00
gobj.c eliminate the package global name space assumption in object files 2010-01-22 17:06:20 -08:00
gsubr.c eliminate the package global name space assumption in object files 2010-01-22 17:06:20 -08:00
list.c Continuation of issue 221 fix. When 8g or 6g or 5g are called with a 2009-12-09 11:56:45 -08:00
Makefile go: makes it build for the case $GOROOT has whitespaces 2009-11-23 17:32:51 -08:00
opt.h sped up optimization by not optimizing 2009-08-29 20:33:21 -07:00
peep.c 1. integer division by a constant done. 2009-08-09 15:16:06 -07:00
reg.c eliminate the package global name space assumption in object files 2010-01-22 17:06:20 -08:00