diff options
| author | Russ Cox <rsc@golang.org> | 2010-01-22 17:06:20 -0800 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2010-01-22 17:06:20 -0800 |
| commit | 758f2bc556b19a3b46798b28741bacc322b243f6 (patch) | |
| tree | d7b13240b0ba1b00553ca9ccbc0ea1e72948ad67 /src/pkg/debug | |
| parent | 07d3e0dce46ce438c7b07949d0e1725d6860e40d (diff) | |
| download | go-758f2bc556b19a3b46798b28741bacc322b243f6.tar.xz | |
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
Diffstat (limited to 'src/pkg/debug')
| -rw-r--r-- | src/pkg/debug/gosym/pclntab_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/debug/gosym/pclntab_test.go b/src/pkg/debug/gosym/pclntab_test.go index 9ab493d596..84e952f8a8 100644 --- a/src/pkg/debug/gosym/pclntab_test.go +++ b/src/pkg/debug/gosym/pclntab_test.go @@ -63,7 +63,7 @@ func TestLineFromAline(t *testing.T) { tab := getTable(t) // Find the sym package - pkg := tab.LookupFunc("gosym.TestLineFromAline").Obj + pkg := tab.LookupFunc("debug/gosym.TestLineFromAline").Obj if pkg == nil { t.Fatalf("nil pkg") } |
