mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/link: support cgo internal/linking on darwin/arm64
Cgo programs work as well. Still not enabled by default for now. Enable internal linking tests. Updates #38485. Change-Id: I8324a5c263fba221eb4e67d71207ca84fa241e6c Reviewed-on: https://go-review.googlesource.com/c/go/+/263637 Trust: Cherry Zhang <cherryyz@google.com> Run-TryBot: Cherry Zhang <cherryyz@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Than McIntosh <thanm@google.com>
This commit is contained in:
parent
bccdd31252
commit
627959eb04
8 changed files with 131 additions and 42 deletions
|
|
@ -2622,11 +2622,15 @@ func (l *Loader) Dump() {
|
|||
fmt.Println("Nsyms:", len(l.objSyms))
|
||||
fmt.Println("syms")
|
||||
for i := Sym(1); i < Sym(len(l.objSyms)); i++ {
|
||||
pi := interface{}("")
|
||||
pi := ""
|
||||
if l.IsExternal(i) {
|
||||
pi = fmt.Sprintf("<ext %d>", l.extIndex(i))
|
||||
}
|
||||
fmt.Println(i, l.SymName(i), l.SymType(i), pi)
|
||||
sect := ""
|
||||
if l.SymSect(i) != nil {
|
||||
sect = l.SymSect(i).Name
|
||||
}
|
||||
fmt.Printf("%v %v %v %v %x %v\n", i, l.SymName(i), l.SymType(i), pi, l.SymValue(i), sect)
|
||||
}
|
||||
fmt.Println("symsByName")
|
||||
for name, i := range l.symsByName[0] {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue