Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for Magic386 (1.16 sec)

  1. src/debug/plan9obj/plan9obj.go

    }
    
    // Plan 9 symbol table entries.
    type sym struct {
    	value uint64
    	typ   byte
    	name  []byte
    }
    
    const (
    	Magic64 = 0x8000 // 64-bit expanded header
    
    	Magic386   = (4*11+0)*11 + 7
    	MagicAMD64 = (4*26+0)*26 + 7 + Magic64
    	MagicARM   = (4*20+0)*20 + 7
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 23:34:33 UTC 2016
    - 863 bytes
    - Viewed (0)
  2. src/debug/plan9obj/file_test.go

    import (
    	"reflect"
    	"testing"
    )
    
    type fileTest struct {
    	file     string
    	hdr      FileHeader
    	sections []*SectionHeader
    }
    
    var fileTests = []fileTest{
    	{
    		"testdata/386-plan9-exec",
    		FileHeader{Magic386, 0x324, 0x14, 4, 0x1000, 32},
    		[]*SectionHeader{
    			{"text", 0x4c5f, 0x20},
    			{"data", 0x94c, 0x4c7f},
    			{"syms", 0x2c2b, 0x55cb},
    			{"spsz", 0x0, 0x81f6},
    			{"pcsz", 0xf7a, 0x81f6},
    		},
    	},
    	{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 23:34:33 UTC 2016
    - 1.7K bytes
    - Viewed (0)
  3. src/cmd/internal/objfile/plan9obj.go

    		return nil, err
    	}
    	textStart := f.LoadAddress + f.HdrSize
    	return data[ssym.Value-textStart : esym.Value-textStart], nil
    }
    
    func (f *plan9File) goarch() string {
    	switch f.plan9.Magic {
    	case plan9obj.Magic386:
    		return "386"
    	case plan9obj.MagicAMD64:
    		return "amd64"
    	case plan9obj.MagicARM:
    		return "arm"
    	}
    	return ""
    }
    
    func (f *plan9File) loadAddress() (uint64, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 21 01:01:44 UTC 2017
    - 3.5K bytes
    - Viewed (0)
  4. src/debug/plan9obj/file.go

    	if f.closer != nil {
    		err = f.closer.Close()
    		f.closer = nil
    	}
    	return err
    }
    
    func parseMagic(magic []byte) (uint32, error) {
    	m := binary.BigEndian.Uint32(magic)
    	switch m {
    	case Magic386, MagicAMD64, MagicARM:
    		return m, nil
    	}
    	return 0, &formatError{0, "bad magic number", magic}
    }
    
    // NewFile creates a new [File] for accessing a Plan 9 binary in an underlying reader.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:33:30 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  5. src/debug/buildinfo/buildinfo.go

    	} else {
    		mod = ""
    	}
    
    	return vers, mod, nil
    }
    
    func hasPlan9Magic(magic []byte) bool {
    	if len(magic) >= 4 {
    		m := binary.BigEndian.Uint32(magic)
    		switch m {
    		case plan9obj.Magic386, plan9obj.MagicAMD64, plan9obj.MagicARM:
    			return true
    		}
    	}
    	return false
    }
    
    func decodeString(data []byte) (s string, rest []byte) {
    	u, n := binary.Uvarint(data)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  6. api/go1.3.txt

    pkg debug/pe, type OptionalHeader64 struct, Subsystem uint16
    pkg debug/pe, type OptionalHeader64 struct, Win32VersionValue uint32
    pkg debug/plan9obj, const Magic386 = 491
    pkg debug/plan9obj, const Magic386 ideal-int
    pkg debug/plan9obj, const Magic64 = 32768
    pkg debug/plan9obj, const Magic64 ideal-int
    pkg debug/plan9obj, const MagicAMD64 = 35479
    pkg debug/plan9obj, const MagicAMD64 ideal-int
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 02 02:45:00 UTC 2014
    - 117K bytes
    - Viewed (0)
  7. src/crypto/sha512/sha512.go

    	}
    	d.nx = 0
    	d.len = 0
    }
    
    const (
    	magic384      = "sha\x04"
    	magic512_224  = "sha\x05"
    	magic512_256  = "sha\x06"
    	magic512      = "sha\x07"
    	marshaledSize = len(magic512) + 8*8 + chunk + 8
    )
    
    func (d *digest) MarshalBinary() ([]byte, error) {
    	b := make([]byte, 0, marshaledSize)
    	switch d.function {
    	case crypto.SHA384:
    		b = append(b, magic384...)
    	case crypto.SHA512_224:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:50:58 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  8. src/crypto/internal/boring/sha.go

    	nx     uint32
    }
    
    const (
    	magic384         = "sha\x04"
    	magic512_224     = "sha\x05"
    	magic512_256     = "sha\x06"
    	magic512         = "sha\x07"
    	marshaledSize512 = len(magic512) + 8*8 + 128 + 8
    )
    
    func (h *sha384Hash) MarshalBinary() ([]byte, error) {
    	d := (*sha512Ctx)(unsafe.Pointer(&h.ctx))
    	b := make([]byte, 0, marshaledSize512)
    	b = append(b, magic384...)
    	b = appendUint64(b, d.h[0])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 17:51:31 UTC 2023
    - 16.2K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"FileHeader.Entry", Field, 3},
    		{"FileHeader.HdrSize", Field, 4},
    		{"FileHeader.LoadAddress", Field, 4},
    		{"FileHeader.Magic", Field, 3},
    		{"FileHeader.PtrSize", Field, 3},
    		{"Magic386", Const, 3},
    		{"Magic64", Const, 3},
    		{"MagicAMD64", Const, 3},
    		{"MagicARM", Const, 3},
    		{"NewFile", Func, 3},
    		{"Open", Func, 3},
    		{"Section", Type, 3},
    		{"Section.ReaderAt", Field, 3},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
Back to top