- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for Elf (0.15 sec)
-
src/cmd/cgo/internal/test/buildid_linux.go
// one. import ( "bytes" "debug/elf" "os" "testing" ) func testBuildID(t *testing.T) { f, err := elf.Open("/proc/self/exe") if err != nil { if os.IsNotExist(err) { t.Skip("no /proc/self/exe") } t.Fatal("opening /proc/self/exe: ", err) } defer f.Close() c := 0 sections: for i, s := range f.Sections { if s.Type != elf.SHT_NOTE { continue }
Go - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Fri May 12 12:00:02 GMT 2023 - 1.7K bytes - Viewed (0) -
src/cmd/cgo/doc.go
they need to be linked into the final binary, along with the libraries they might depend on (in the case of puts, stdio). cmd/link has been extended to understand basic ELF files, but it does not understand ELF in the full complexity that modern C libraries embrace, so it cannot in general generate direct references to the system libraries. Instead, the build process generates an object file using dynamic
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Sun Mar 31 09:02:45 GMT 2024 - 42.1K bytes - Viewed (0) -
src/cmd/cgo/gcc.go
// license that can be found in the LICENSE file. // Annotate Ref in Prog with C types by parsing gcc debug output. // Conversion of debug output to Go types. package main import ( "bytes" "debug/dwarf" "debug/elf" "debug/macho" "debug/pe" "encoding/binary" "errors" "flag" "fmt" "go/ast" "go/parser" "go/token" "internal/xcoff" "math" "os" "os/exec" "strconv" "strings" "unicode"
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Thu Nov 02 16:43:23 GMT 2023 - 97K bytes - Viewed (0)