diff options
author | Jeremy Faller <jeremy@golang.org> | 2019-09-17 21:45:28 +0000 |
---|---|---|
committer | Jeremy Faller <jeremy@golang.org> | 2019-09-17 22:04:57 +0000 |
commit | b3e2a72e6f42a924d6489b14c6881aa5cddf9418 (patch) | |
tree | 533e1060ac54a5b802541889b6a7cd0a51e0eae2 /src/debug | |
parent | 575386d6324308d83f6f0782e61620ffe9f5dba3 (diff) | |
download | go-b3e2a72e6f42a924d6489b14c6881aa5cddf9418.tar.gz go-b3e2a72e6f42a924d6489b14c6881aa5cddf9418.zip |
Revert "cmd/link: prefix syms with "_" on darwin links"
This reverts commit 06e5529eceae35bb26b51f2430c2c9425149ede2.
Reason for revert: darwin_386 is unhappy. (Almost as unhappy as I am.)
https://build.golang.org/log/292c90a4ef1c93597b865ab8513b66a95d93d022
Change-Id: I690566ce1d8212317fc3dc349ad0d4d5a2bb58eb
Reviewed-on: https://go-review.googlesource.com/c/go/+/196033
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Run-TryBot: Cherry Zhang <cherryyz@google.com>
Diffstat (limited to 'src/debug')
-rw-r--r-- | src/debug/macho/file.go | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/debug/macho/file.go b/src/debug/macho/file.go index 085b0c8219..16708e5247 100644 --- a/src/debug/macho/file.go +++ b/src/debug/macho/file.go @@ -473,12 +473,7 @@ func (f *File) parseSymtab(symdat, strtab, cmddat []byte, hdr *SymtabCmd, offset if n.Name >= uint32(len(strtab)) { return nil, &FormatError{offset, "invalid name in symbol table", n.Name} } - // We add "_" to Go symbols. Strip it here. See issue 33808. - name := cstring(strtab[n.Name:]) - if strings.Contains(name, ".") && name[0] == '_' { - name = name[1:] - } - sym.Name = name + sym.Name = cstring(strtab[n.Name:]) sym.Type = n.Type sym.Sect = n.Sect sym.Desc = n.Desc |