Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for elfData (0.19 sec)

  1. src/debug/dwarf/type_test.go

    		t.Fatal(err)
    	}
    	return d
    }
    
    func TestTypedefsELF(t *testing.T) {
    	testTypedefs(t, elfData(t, "testdata/typedef.elf"), "elf", typedefTests)
    }
    
    func TestTypedefsMachO(t *testing.T) {
    	testTypedefs(t, machoData(t, "testdata/typedef.macho"), "macho", typedefTests)
    }
    
    func TestTypedefsELFDwarf4(t *testing.T) {
    	testTypedefs(t, elfData(t, "testdata/typedef.elf4"), "elf", typedefTests)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 19 15:49:05 UTC 2022
    - 8.8K bytes
    - Viewed (0)
  2. src/debug/dwarf/line_test.go

    		{Address: 0x40101c, File: file, Line: 9, Column: 3},
    		{Address: 0x40101d, EndSequence: true},
    	}
    	files := [][]*LineFile{{file}}
    
    	testLineTable(t, want, files, elfData(t, "testdata/rnglistx.elf"))
    }
    
    func TestLineSeek(t *testing.T) {
    	d := elfData(t, "testdata/line-gcc.elf")
    
    	// Get the line table for the first CU.
    	cu, err := d.Reader().Next()
    	if err != nil {
    		t.Fatal("d.Reader().Next:", err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 18 20:34:36 UTC 2023
    - 14.5K bytes
    - Viewed (0)
  3. src/debug/dwarf/entry_test.go

    	// the attributes that pointed to the split DWARF used to
    	// cause loading the DWARF data to fail entirely (issue
    	// #12592). Test that we can at least read the DWARF data.
    	d := elfData(t, "testdata/split.elf")
    	r := d.Reader()
    	e, err := r.Next()
    	if err != nil {
    		t.Fatal(err)
    	}
    	if e.Tag != TagCompileUnit {
    		t.Fatalf("bad tag: have %s, want %s", e.Tag, TagCompileUnit)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 18 20:34:36 UTC 2023
    - 16.1K bytes
    - Viewed (0)
  4. src/cmd/link/internal/ld/elf.go

    		shstrtabAddstring(".note.tag")
    	}
    	if len(buildinfo) > 0 {
    		shstrtabAddstring(".note.gnu.build-id")
    	}
    	if *flagBuildid != "" {
    		shstrtabAddstring(".note.go.buildid")
    	}
    	shstrtabAddstring(".elfdata")
    	shstrtabAddstring(".rodata")
    	// See the comment about data.rel.ro.FOO section names in data.go.
    	relro_prefix := ""
    	if ctxt.UseRelro() {
    		shstrtabAddstring(".data.rel.ro")
    		relro_prefix = ".data.rel.ro"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 13:29:54 UTC 2024
    - 63.6K bytes
    - Viewed (0)
Back to top