Skip to content

Commit

Permalink
replace package path for inline tree
Browse files Browse the repository at this point in the history
  • Loading branch information
pkujhd committed Jul 27, 2024
1 parent e6325be commit 527dc52
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions readobj.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ func (linker *Linker) readObj(file, pkgpath string) error {
for index, FuncData := range sym.Func.FuncData {
sym.Func.FuncData[index] = obj.ReplacePkgPath(FuncData, pkg.PkgPath)
}
for index, inl := range sym.Func.InlTree {
sym.Func.InlTree[index].Func = obj.ReplacePkgPath(inl.Func, pkg.PkgPath)
}
sym.Func.CUOffset += linker.CUOffset
}
sym.Name = obj.ReplacePkgPath(sym.Name, pkg.PkgPath)
Expand Down

0 comments on commit 527dc52

Please sign in to comment.