Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for mustSetHeadType (0.13 sec)

  1. src/cmd/link/internal/ld/target.go

    //
    
    func (t *Target) IsLinux() bool {
    	t.mustSetHeadType()
    	return t.HeadType == objabi.Hlinux
    }
    
    func (t *Target) IsDarwin() bool {
    	t.mustSetHeadType()
    	return t.HeadType == objabi.Hdarwin
    }
    
    func (t *Target) IsWindows() bool {
    	t.mustSetHeadType()
    	return t.HeadType == objabi.Hwindows
    }
    
    func (t *Target) IsPlan9() bool {
    	t.mustSetHeadType()
    	return t.HeadType == objabi.Hplan9
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 13 21:14:48 UTC 2022
    - 3.9K bytes
    - Viewed (0)
  2. src/cmd/link/internal/ld/data_test.go

    	ctxt := linknew(arch)
    	ctxt.HeadType = ht
    	er := loader.ErrorReporter{}
    	ctxt.loader = loader.NewLoader(0, &er)
    	ctxt.BuildMode.Set(bm)
    	ctxt.LinkMode.Set(lm)
    	ctxt.IsELF = iself
    	ctxt.mustSetHeadType()
    	ctxt.setArchSyms()
    	return ctxt
    }
    
    // Make sure the addgotsym properly increases the symbols.
    func TestAddGotSym(t *testing.T) {
    	tests := []struct {
    		arch    *sys.Arch
    		ht      objabi.HeadType
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 05 19:20:01 UTC 2023
    - 2.3K bytes
    - Viewed (0)
Back to top