Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for SHT_PROGBITS (0.17 sec)

  1. src/cmd/link/internal/ld/elf_test.go

    	// List of interesting sections. Here "interesting" means progbits/dynamic
    	// and loadable (has an address), nonzero size.
    	secs := []*elf.Section{}
    	for _, s := range elfFile.Sections {
    		if s.Type != elf.SHT_PROGBITS && s.Type != elf.SHT_DYNAMIC {
    			continue
    		}
    		if s.Addr == 0 || s.Size == 0 {
    			continue
    		}
    		secs = append(secs, s)
    	}
    
    	secOverlaps := func(s1, s2 *elf.Section) bool {
    		st1 := s1.Addr
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 13:44:07 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  2. src/cmd/link/internal/ld/lib.go

    	}
    }
    
    func readelfsymboldata(ctxt *Link, f *elf.File, sym *elf.Symbol) []byte {
    	data := make([]byte, sym.Size)
    	sect := f.Sections[sym.Section]
    	if sect.Type != elf.SHT_PROGBITS && sect.Type != elf.SHT_NOTE {
    		Errorf(nil, "reading %s from non-data section", sym.Name)
    	}
    	n, err := sect.ReadAt(data, int64(sym.Value-sect.Addr))
    	if uint64(n) != sym.Size {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 18:45:27 UTC 2024
    - 88.6K bytes
    - Viewed (0)
Back to top