Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for trampolines (0.22 sec)

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

    	if thearch.Trampoline == nil || isTramp {
    		return 0
    	}
    
    	n := uint64(0)
    	relocs := ldr.Relocs(s)
    	for ri := 0; ri < relocs.Count(); ri++ {
    		r := relocs.At(ri)
    		if r.Type().IsDirectCallOrJump() {
    			n++
    		}
    	}
    
    	switch {
    	case ctxt.IsARM():
    		return n * 20 // Trampolines in ARM range from 3 to 5 instructions.
    	case ctxt.IsARM64():
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 12 15:10:50 UTC 2024
    - 100.5K bytes
    - Viewed (0)
  2. src/debug/elf/elf.go

    }
    
    func (i R_SPARC) String() string   { return stringName(uint32(i), rsparcStrings, false) }
    func (i R_SPARC) GoString() string { return stringName(uint32(i), rsparcStrings, true) }
    
    // Magic number for the elf trampoline, chosen wisely to be an immediate value.
    const ARM_MAGIC_TRAMP_NUMBER = 0x5c000003
    
    // ELF32 File header.
    type Header32 struct {
    	Ident     [EI_NIDENT]byte /* File identification. */
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 16 00:01:16 UTC 2024
    - 134.6K bytes
    - Viewed (0)
  3. src/cmd/internal/obj/x86/asm6.go

    					r = obj.Addrel(cursym)
    					r.Off = int32(p.Pc + int64(ab.Len()))
    					r.Sym = p.To.Sym
    					// Note: R_CALL instead of R_PCREL. R_CALL is more permissive in that
    					// it can point to a trampoline instead of the destination itself.
    					r.Type = objabi.R_CALL
    					r.Siz = 4
    					ab.PutInt32(0)
    					break
    				}
    
    				// Assumes q is in this function.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 15:44:14 UTC 2024
    - 146.9K bytes
    - Viewed (0)
Back to top