diff options
| author | Michael Hudson-Doyle <michael.hudson@canonical.com> | 2015-11-03 09:36:53 +1300 |
|---|---|---|
| committer | Michael Hudson-Doyle <michael.hudson@canonical.com> | 2015-11-02 23:07:12 +0000 |
| commit | ebafc80ebaa8d7e67ba72642eed67c0adfc0c0c3 (patch) | |
| tree | 2557ef937f0a79d5d0ff0ec6d47c6073f6cc1a16 /src | |
| parent | 0e23ca41d99c82d301badf1b762888e2c69e6c57 (diff) | |
| download | go-ebafc80ebaa8d7e67ba72642eed67c0adfc0c0c3.tar.xz | |
cmd/link: remove duplicate symtab entry for global functions
golang.org/cl/16436 added a local symbol for every global function, but also
added a duplicate entry for the global symbol. Surprisingly this hasn't caused
any noticeable problems, but it's still wrong.
Change-Id: Icd3906760f8aaf7bef31ffd4f2d866d73d36dc2c
Reviewed-on: https://go-review.googlesource.com/16581
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src')
| -rw-r--r-- | src/cmd/link/internal/ld/symtab.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cmd/link/internal/ld/symtab.go b/src/cmd/link/internal/ld/symtab.go index c53037168a..005e876d28 100644 --- a/src/cmd/link/internal/ld/symtab.go +++ b/src/cmd/link/internal/ld/symtab.go @@ -175,6 +175,7 @@ func putelfsym(x *LSym, s string, t int, addr int64, size int64, ver int, go_ *L putelfsyment(putelfstr("local."+s), addr, size, STB_LOCAL<<4|type_&0xf, elfshnum, other) x.LocalElfsym = int32(numelfsym) numelfsym++ + return } else if bind != elfbind { return } |
