- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for PT_NOTE (0.55 sec)
-
src/cmd/internal/buildid/buildid_test.go
if err2 != nil { t.Fatal(err2) } id, err = ReadFile(tmp) if id != newID || err != nil { t.Errorf("ReadFile(%s after Rewrite) = %q, %v, want %q, nil", f, id, err, newID) } // Test an ELF PT_NOTE segment with an Align field of 0. // Do this by rewriting the file data. if strings.Contains(name, "elf") { // We only expect a 64-bit ELF file. if elf.Class(data[elf.EI_CLASS]) != elf.ELFCLASS64 { continue
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:31:28 UTC 2024 - 6.6K bytes - Viewed (0) -
src/cmd/internal/buildid/note.go
return desc, nil } } } return nil, nil } var elfGoNote = []byte("Go\x00\x00") var elfGNUNote = []byte("GNU\x00") // The Go build ID is stored in a note described by an ELF PT_NOTE prog // header. The caller has already opened filename, to get f, and read // at least 4 kB out, in data. func readELF(name string, f *os.File, data []byte) (buildid string, err error) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 17 20:40:42 UTC 2023 - 6K bytes - Viewed (0) -
src/cmd/internal/buildid/buildid.go
{0xcf, 0xfa, 0xed, 0xfe}, } ) var readSize = 32 * 1024 // changed for testing // readBinary reads the build ID from a binary. // // ELF binaries store the build ID in a proper PT_NOTE section. // // Other binary formats are not so flexible. For those, the linker // stores the build ID as non-instruction bytes at the very beginning // of the text segment, which should appear near the beginning
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 28 21:52:53 UTC 2020 - 9K bytes - Viewed (0)