Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for isPIE (0.09 sec)

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

    }
    
    func (t *Target) IsInternal() bool {
    	return t.LinkMode == LinkInternal
    }
    
    func (t *Target) IsExternal() bool {
    	return t.LinkMode == LinkExternal
    }
    
    func (t *Target) IsPIE() bool {
    	return t.BuildMode == BuildModePIE
    }
    
    func (t *Target) IsSharedGoLink() bool {
    	return t.linkShared
    }
    
    func (t *Target) CanUsePlugins() bool {
    	return t.canUsePlugins
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 13 21:14:48 UTC 2022
    - 3.9K bytes
    - Viewed (0)
  2. src/cmd/link/internal/amd64/asm.go

    		if targType == sym.SDYNIMPORT {
    			ldr.Errorf(s, "unexpected R_X86_64_64 relocation for dynamic symbol %s", ldr.SymName(targ))
    		}
    		su := ldr.MakeSymbolUpdater(s)
    		su.SetRelocType(rIdx, objabi.R_ADDR)
    		if target.IsPIE() && target.IsInternal() {
    			// For internal linking PIE, this R_ADDR relocation cannot
    			// be resolved statically. We need to generate a dynamic
    			// relocation. Let the code below handle it.
    			break
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 23 05:58:20 UTC 2023
    - 21K bytes
    - Viewed (0)
  3. src/cmd/link/internal/ld/macho.go

    	}
    	out.Write32(uint32(len(load)) + uint32(nseg) + uint32(ndebug))
    	out.Write32(uint32(loadsize))
    	flags := uint32(0)
    	if nkind[SymKindUndef] == 0 {
    		flags |= MH_NOUNDEFS
    	}
    	if ctxt.IsPIE() && linkmode == LinkInternal {
    		flags |= MH_PIE | MH_DYLDLINK
    	}
    	out.Write32(flags) /* flags */
    	if arch.PtrSize == 8 {
    		out.Write32(0) /* reserved */
    	}
    
    	for i := 0; i < nseg; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:32:53 UTC 2024
    - 43.9K bytes
    - Viewed (0)
  4. src/cmd/link/internal/arm64/asm.go

    		if targType == sym.SDYNIMPORT {
    			ldr.Errorf(s, "unexpected R_AARCH64_ABS64 relocation for dynamic symbol %s", ldr.SymName(targ))
    		}
    		su := ldr.MakeSymbolUpdater(s)
    		su.SetRelocType(rIdx, objabi.R_ADDR)
    		if target.IsPIE() && target.IsInternal() {
    			// For internal linking PIE, this R_ADDR relocation cannot
    			// be resolved statically. We need to generate a dynamic
    			// relocation. Let the code below handle it.
    			break
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 30 20:09:45 UTC 2024
    - 47K bytes
    - Viewed (0)
  5. src/cmd/link/internal/ppc64/asm.go

    			rela.AddUint64(target.Arch, uint64(r.Add()))
    			su.SetRelocType(rIdx, objabi.ElfRelocOffset) // ignore during relocsym
    		} else if target.IsPIE() && target.IsInternal() {
    			// For internal linking PIE, this R_ADDR relocation cannot
    			// be resolved statically. We need to generate a dynamic
    			// relocation. Let the code below handle it.
    			break
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 20:54:08 UTC 2024
    - 63.7K bytes
    - Viewed (0)
  6. src/cmd/go/internal/load/pkg.go

    	}
    
    	// Decide whether we are building a PIE,
    	// bearing in mind that some systems default to PIE.
    	isPIE := false
    	if cfg.BuildBuildmode == "pie" {
    		isPIE = true
    	} else if cfg.BuildBuildmode == "default" && platform.DefaultPIE(cfg.BuildContext.GOOS, cfg.BuildContext.GOARCH, cfg.BuildRace) {
    		isPIE = true
    	}
    	// If we are building a PIE, and we are on a system
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 28 17:00:51 UTC 2024
    - 120K bytes
    - Viewed (0)
  7. src/cmd/link/internal/ld/lib.go

    		}
    	} else if target.IsDarwin() {
    		leg := ldr.MakeSymbolUpdater(syms.LinkEditGOT)
    		leg.AddUint32(target.Arch, uint32(ldr.SymDynid(s)))
    		if target.IsPIE() && target.IsInternal() {
    			// Mach-O relocations are a royal pain to lay out.
    			// They use a compact stateful bytecode representation.
    			// Here we record what are needed and encode them later.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 18:45:27 UTC 2024
    - 88.6K bytes
    - Viewed (0)
  8. src/cmd/link/internal/ld/data.go

    				o = 0
    				if !target.IsAMD64() {
    					o = r.Add()
    				}
    				if target.Is386() {
    					nExtReloc++ // need two ELF relocations on 386, see ../x86/asm.go:elfreloc1
    				}
    				break
    			}
    			if target.IsPIE() && target.IsElf() {
    				// We are linking the final executable, so we
    				// can optimize any TLS IE relocation to LE.
    				if thearch.TLSIEtoLE == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 12 15:10:50 UTC 2024
    - 100.5K bytes
    - Viewed (1)
Back to top