- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for PKGDEF (1.38 sec)
-
src/go/internal/gcimporter/exportdata.go
return } if string(line) == "!<arch>\n" { // Archive file. Scan to __.PKGDEF. var name string if name, size, err = readGopackHeader(r); err != nil { return } // First entry should be __.PKGDEF. if name != "__.PKGDEF" { err = fmt.Errorf("go archive is missing __.PKGDEF") return } // Read first line of __.PKGDEF data, so that line // is once again the first line of the input.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 19 15:49:05 UTC 2022 - 2.4K bytes - Viewed (0) -
src/cmd/pack/pack.go
goto close } for _, e := range aro.Entries { if e.Type != archive.EntryPkgDef { continue } if verbose { fmt.Printf("__.PKGDEF # %s\n", file) } ar.a.AddEntry(archive.EntryPkgDef, "__.PKGDEF", 0, 0, 0, 0644, e.Size, io.NewSectionReader(f, e.Offset, e.Size)) done = true } close: f.Close() if done { break } } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 19:41:17 UTC 2024 - 8.2K bytes - Viewed (0) -
src/cmd/internal/buildid/buildid.go
"fmt" "internal/xcoff" "io" "io/fs" "os" "strconv" "strings" ) var ( errBuildIDMalformed = fmt.Errorf("malformed object file") bangArch = []byte("!<arch>") pkgdef = []byte("__.PKGDEF") goobject = []byte("go object ") buildid = []byte("build id ") ) // ReadFile reads the build ID from an archive or executable file. func ReadFile(name string) (id string, err error) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 28 21:52:53 UTC 2020 - 9K bytes - Viewed (0) -
src/cmd/internal/archive/archive.go
} if err != nil { return errCorruptArchive } data = data[60:] fsize := size + size&1 if fsize < 0 || fsize < size { return errCorruptArchive } switch name { case "__.PKGDEF": r.a.Entries = append(r.a.Entries, Entry{ Name: name, Type: EntryPkgDef, Mtime: mtime, Uid: uid, Gid: gid, Mode: mode, Data: Data{r.offset, size}, })
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 15 15:39:57 UTC 2023 - 12.1K bytes - Viewed (0) -
src/cmd/pack/pack_test.go
out := run("./a.out") if out != "hello world\n" { t.Fatalf("incorrect output: %q, want %q", out, "hello world\n") } } // Test that pack works with very long lines in PKGDEF. func TestLargeDefs(t *testing.T) { if testing.Short() { t.Skip("skipping in -short mode") } testenv.MustHaveGoBuild(t) dir := t.TempDir() large := filepath.Join(dir, "large.go")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 04 16:27:35 UTC 2023 - 12.5K bytes - Viewed (0) -
src/cmd/link/internal/ld/lib.go
Segpdata sym.Segment // windows-only Segxdata sym.Segment // windows-only Segments = []*sym.Segment{&Segtext, &Segrodata, &Segrelrodata, &Segdata, &Segdwarf, &Segpdata, &Segxdata} ) const pkgdef = "__.PKGDEF" var ( // externalobj is set to true if we see an object compiled by // the host compiler that is not from a package that is known // to support internal linking mode. externalobj = false
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 21 18:45:27 UTC 2024 - 88.6K bytes - Viewed (0) -
src/cmd/link/internal/loader/loader.go
errorReporter *ErrorReporter npkgsyms int // number of package symbols, for accounting nhashedsyms int // number of hashed symbols, for accounting } const ( pkgDef = iota hashed64Def hashedDef nonPkgDef nonPkgRef ) // objidx const ( nilObj = iota extObj goObjStart )
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 20:26:10 UTC 2024 - 81.5K bytes - Viewed (0)