"cmd/internal/objabi"
"cmd/internal/sys"
"cmd/link/internal/loader"
+ "internal/buildcfg"
"testing"
)
}
// Save the architecture as we're going to set it on each test run.
- origArch := objabi.GOARCH
+ origArch := buildcfg.GOARCH
defer func() {
- objabi.GOARCH = origArch
+ buildcfg.GOARCH = origArch
}()
for i, test := range tests {
iself := len(test.rel) != 0
- objabi.GOARCH = test.arch.Name
+ buildcfg.GOARCH = test.arch.Name
ctxt := setUpContext(test.arch, iself, test.ht, test.bm, test.lm)
foo := ctxt.loader.CreateSymForUpdate("foo", 0)
ctxt.loader.CreateExtSym("bar", 0)