mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/link: move Iself global to ctxt
For #22095 Change-Id: Iba3dffc782cecc15ea0e90a971a2734729984945 Reviewed-on: https://go-review.googlesource.com/70834 Run-TryBot: David Crawshaw <crawshaw@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
parent
6738c494ad
commit
d05f82a11a
15 changed files with 68 additions and 68 deletions
|
|
@ -172,7 +172,7 @@ func asmb(ctxt *ld.Link) {
|
|||
ctxt.Logf("%5.2f asmb\n", ld.Cputime())
|
||||
}
|
||||
|
||||
if ld.Iself {
|
||||
if ctxt.IsELF {
|
||||
ld.Asmbelfsetup()
|
||||
}
|
||||
|
||||
|
|
@ -209,7 +209,7 @@ func asmb(ctxt *ld.Link) {
|
|||
ld.Lcsize = 0
|
||||
symo := uint32(0)
|
||||
if !*ld.FlagS {
|
||||
if !ld.Iself {
|
||||
if !ctxt.IsELF {
|
||||
ld.Errorf(nil, "unsupported executable format")
|
||||
}
|
||||
if ctxt.Debugvlog != 0 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue