Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for shnum (0.04 sec)

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

    		ehdr.Phnum++
    	}
    	if elf64 {
    		ehdr.Shoff += ELF64PHDRSIZE
    	} else {
    		ehdr.Shoff += ELF32PHDRSIZE
    	}
    	return e
    }
    
    func newElfShdr(name int64) *ElfShdr {
    	e := new(ElfShdr)
    	e.Name = uint32(name)
    	e.shnum = elf.SectionIndex(ehdr.Shnum)
    	if ehdr.Shnum >= NSECT {
    		Errorf(nil, "too many shdrs")
    	} else {
    		shdr[ehdr.Shnum] = e
    		ehdr.Shnum++
    	}
    
    	return e
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 13:29:54 UTC 2024
    - 63.6K bytes
    - Viewed (0)
  2. src/debug/elf/file_test.go

    		h := Header32{
    			Ident:     [16]byte{0x7F, 'E', 'L', 'F', 0x01, 0x01, 0x01},
    			Type:      1,
    			Machine:   3,
    			Version:   1,
    			Shoff:     0x2DD44C,
    			Ehsize:    0x34,
    			Shentsize: 0x28,
    			Shnum:     0,
    			Shstrndx:  0xFFFF,
    		}
    		binary.Write(&buf, binary.LittleEndian, h)
    
    		// Zero out sections [1]~[65294].
    		buf.Write(bytes.Repeat([]byte{0}, 0x13ED1C-binary.Size(h)))
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 22 16:22:42 UTC 2023
    - 60.1K bytes
    - Viewed (0)
  3. src/cmd/link/internal/ld/dwarf.go

    		return
    	}
    
    	ldr := ctxt.loader
    	for _, si := range dwarfp {
    		s := si.secSym()
    		sect := ldr.SymSect(si.secSym())
    		putelfsectionsym(ctxt, ctxt.Out, s, sect.Elfsect.(*ElfShdr).shnum)
    	}
    }
    
    // dwarfcompress compresses the DWARF sections. Relocations are applied
    // on the fly. After this, dwarfp will contain a different (new) set of
    // symbols, and sections may have been replaced.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 16:25:18 UTC 2024
    - 72.4K bytes
    - Viewed (0)
Back to top