@ -1008,11 +1008,8 @@ func (tf *transformer) transformLinkname(localName, newName string) (string, str
newName, pkgPath)
return localName, newName
}
if err != nil {
panic(err) // shouldn't happen
if lpkg.ToObfuscate {
// The name exists and was obfuscated; obfuscate the new name.
newForeignName := hashWithPackage(lpkg, foreignName)