Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for addSymRef (0.12 sec)

  1. src/cmd/link/internal/ppc64/asm.go

    	}
    
    	if !hasPCrel {
    		sz := initfunc.AddSymRef(ctxt.Arch, tgt, 0, objabi.R_ADDRPOWER_GOT, 8)
    		initfunc.SetUint32(ctxt.Arch, sz-8, 0x3c620000) // addis r3, r2, local.moduledata@got@ha
    		initfunc.SetUint32(ctxt.Arch, sz-4, 0xe8630000) // ld r3, local.moduledata@got@l(r3)
    	} else {
    		sz := initfunc.AddSymRef(ctxt.Arch, tgt, 0, objabi.R_ADDRPOWER_GOT_PCREL34, 8)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 20:54:08 UTC 2024
    - 63.7K bytes
    - Viewed (0)
  2. src/cmd/link/internal/riscv64/asm.go

    	plt.AddInteriorSym(sb.Sym())
    
    	plt.AddUint32(ctxt.Arch, 0x41c30333) // sub     t1,t1,t3
    
    	plt.AddSymRef(ctxt.Arch, sb.Sym(), 0, objabi.R_RISCV_PCREL_LO12_I, 4)
    	plt.SetUint32(ctxt.Arch, plt.Size()-4, 0x0003be03) // ld      t3,0(t2)
    
    	plt.AddUint32(ctxt.Arch, 0xfd430313) // addi    t1,t1,-44
    
    	plt.AddSymRef(ctxt.Arch, sb.Sym(), 0, objabi.R_RISCV_PCREL_LO12_I, 4)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 01 08:06:08 UTC 2024
    - 22.8K bytes
    - Viewed (0)
  3. src/cmd/link/internal/arm64/asm.go

    		// the following two instructions (adrp + ldr) load *got[2] into x17
    		// adrp    x16, &got[0]
    		plt.AddSymRef(ctxt.Arch, gotplt.Sym(), 16, objabi.R_ARM64_GOT, 4)
    		plt.SetUint32(ctxt.Arch, plt.Size()-4, 0x90000010)
    
    		// <imm> is the offset value of &got[2] to &got[0], the same below
    		// ldr     x17, [x16, <imm>]
    		plt.AddSymRef(ctxt.Arch, gotplt.Sym(), 16, objabi.R_ARM64_GOT, 4)
    		plt.SetUint32(ctxt.Arch, plt.Size()-4, 0xf9400211)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 30 20:09:45 UTC 2024
    - 47K bytes
    - Viewed (0)
  4. src/cmd/link/internal/ld/dwarf.go

    	dsu := c.ldr.MakeSymbolUpdater(ds)
    	tds := loader.Sym(t.(dwSym))
    	switch size {
    	default:
    		c.linkctxt.Errorf(ds, "invalid size %d in adddwarfref\n", size)
    	case c.arch.PtrSize, 4:
    	}
    	dsu.AddSymRef(c.arch, tds, ofs, objabi.R_ADDROFF, size)
    }
    
    func (c dwctxt) AddDWARFAddrSectionOffset(s dwarf.Sym, t interface{}, ofs int64) {
    	size := 4
    	if isDwarf64(c.linkctxt) {
    		size = 8
    	}
    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