Skip to content

Commit 527dc52

Browse files
committed
replace package path for inline tree
1 parent e6325be commit 527dc52

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: readobj.go

+3
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ func (linker *Linker) readObj(file, pkgpath string) error {
4343
for index, FuncData := range sym.Func.FuncData {
4444
sym.Func.FuncData[index] = obj.ReplacePkgPath(FuncData, pkg.PkgPath)
4545
}
46+
for index, inl := range sym.Func.InlTree {
47+
sym.Func.InlTree[index].Func = obj.ReplacePkgPath(inl.Func, pkg.PkgPath)
48+
}
4649
sym.Func.CUOffset += linker.CUOffset
4750
}
4851
sym.Name = obj.ReplacePkgPath(sym.Name, pkg.PkgPath)

0 commit comments

Comments
 (0)