- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for readELF (0.2 sec)
-
platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/binaryinfo/ReadelfBinaryInfo.groovy
this.binaryFile = binaryFile } static boolean canUseReadelf() { def process = ['readelf', '-v'].execute() return process.waitFor() && process.exitValue() == 0 } ArchitectureInternal getArch() { def process = ['readelf', '-h', binaryFile.absolutePath].execute() List<String> lines = process.inputStream.readLines() return readArch(lines) }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Feb 06 15:17:55 UTC 2024 - 4.6K bytes - Viewed (0) -
platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/platform/internal/ReadelfBinaryInfoTest.groovy
import org.gradle.nativeplatform.fixtures.binaryinfo.ReadelfBinaryInfo import spock.lang.Specification import spock.lang.Unroll class ReadelfBinaryInfoTest extends Specification { def "read list of files from readelf"() { when: def input = """ Symbol table '.symtab' contains 53 entries: Num: Value Size Type Bind Vis Ndx Name 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Feb 05 23:09:11 UTC 2024 - 13.9K bytes - Viewed (0) -
src/debug/dwarf/line_test.go
) func TestLineELFGCC(t *testing.T) { // Generated by: // # gcc --version | head -n1 // gcc (Ubuntu 4.8.2-19ubuntu1) 4.8.2 // # gcc -g -o line-gcc.elf line*.c // Line table based on readelf --debug-dump=rawline,decodedline want := []LineEntry{ {Address: 0x40059d, File: file1H, Line: 2, IsStmt: true}, {Address: 0x4005a5, File: file1H, Line: 2, IsStmt: true},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 18 20:34:36 UTC 2023 - 14.5K bytes - Viewed (0) -
src/cmd/internal/buildid/note.go
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) { // Assume the note content is in the data, already read. // Rewrite the ELF header to set shoff and shnum to 0, so that we can pass
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
_, err = io.ReadFull(f, data) if err == io.ErrUnexpectedEOF { err = nil } if err != nil { return "", err } if bytes.HasPrefix(data, elfPrefix) { return readELF(name, f, data) } for _, m := range machoPrefixes { if bytes.HasPrefix(data, m) { return readMacho(name, f, data) } } return readRaw(name, data) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 28 21:52:53 UTC 2020 - 9K bytes - Viewed (0) -
src/debug/elf/file_test.go
// for i in `seq 1 65288`; do // printf -v x "%04x" i; // echo "int var_$x __attribute__((section(\"section_$x\"))) = $i;" // done > y.c // 2. compile: gcc -c y.c -m32 // // $readelf -h y.o // ELF Header: // Magic: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00 // Class: ELF32 // Data: 2's complement, little endian
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 22 16:22:42 UTC 2023 - 60.1K bytes - Viewed (0) -
src/cmd/link/internal/loadelf/ldelf.go
// find the one we are looking for. This format is slightly documented in "ELF // for the ARM Architecture" but mostly this is derived from reading the source // to gold and readelf. func parseArmAttributes(e binary.ByteOrder, data []byte) (found bool, ehdrFlags uint32, err error) { found = false if data[0] != 'A' { return false, 0, fmt.Errorf(".ARM.attributes has unexpected format %c\n", data[0])
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 16 15:12:12 UTC 2024 - 33.9K bytes - Viewed (0)