mirror of
https://github.com/golang/go
synced 2024-11-19 01:14:39 -07:00
cmd/link: hide go.dwarf symbols
Fixes #15179 Change-Id: I0f70b7ae1682eafaece7f22d8e76f0aa806f3ec9 Reviewed-on: https://go-review.googlesource.com/21589 Run-TryBot: David Crawshaw <crawshaw@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
e6181eb9e1
commit
9658b7ef83
@ -509,6 +509,7 @@ func newdie(parent *DWDie, abbrev int, name string, version int) *DWDie {
|
||||
if name != "" && (abbrev <= DW_ABRV_VARIABLE || abbrev >= DW_ABRV_NULLTYPE) {
|
||||
if abbrev != DW_ABRV_VARIABLE || version == 0 {
|
||||
die.sym = Linklookup(Ctxt, infoprefix+name, version)
|
||||
die.sym.Attr |= AttrHidden
|
||||
die.sym.Type = obj.SDWARFINFO
|
||||
}
|
||||
}
|
||||
@ -814,6 +815,7 @@ func dotypedef(parent *DWDie, name string, def *DWDie) {
|
||||
}
|
||||
|
||||
def.sym = Linklookup(Ctxt, def.sym.Name+".def", 0)
|
||||
def.sym.Attr |= AttrHidden
|
||||
def.sym.Type = obj.SDWARFINFO
|
||||
|
||||
// The typedef entry must be created after the def,
|
||||
|
Loading…
Reference in New Issue
Block a user