Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for newSection (0.14 sec)

  1. src/go/printer/nodes.go

    // future (not yet interspersed) comments in this function.
    func (p *printer) linebreak(line, min int, ws whiteSpace, newSection bool) (nbreaks int) {
    	n := max(nlimit(line-p.pos.Line), min)
    	if n > 0 {
    		p.print(ws)
    		if newSection {
    			p.print(formfeed)
    			n--
    			nbreaks = 2
    		}
    		nbreaks += n
    		for ; n > 0; n-- {
    			p.print(newline)
    		}
    	}
    	return
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 17 18:53:17 UTC 2023
    - 52.6K bytes
    - Viewed (0)
  2. src/cmd/link/internal/loader/loader.go

    	if int(i) >= len(l.symSects) {
    		l.symSects = append(l.symSects, make([]uint16, l.NSym()-len(l.symSects))...)
    	}
    	l.symSects[i] = sect.Index
    }
    
    // NewSection creates a new (output) section.
    func (l *Loader) NewSection() *sym.Section {
    	sect := new(sym.Section)
    	idx := len(l.sects)
    	if idx != int(uint16(idx)) {
    		panic("too many sections created")
    	}
    	sect.Index = uint16(idx)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 20:26:10 UTC 2024
    - 81.5K bytes
    - Viewed (0)
  3. src/cmd/link/internal/ld/lib.go

    	ctxt.Shlibs = append(ctxt.Shlibs, Shlib{Path: libpath, Hash: hash, Deps: deps, File: f})
    }
    
    func addsection(ldr *loader.Loader, arch *sys.Arch, seg *sym.Segment, name string, rwx int) *sym.Section {
    	sect := ldr.NewSection()
    	sect.Rwx = uint8(rwx)
    	sect.Name = name
    	sect.Seg = seg
    	sect.Align = int32(arch.PtrSize) // everything is at least pointer-aligned
    	seg.Sections = append(seg.Sections, sect)
    	return sect
    }
    
    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