- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 23 for symalign (0.17 sec)
-
src/cmd/link/internal/loader/loader_test.go
} } // Check/set alignment es3al := ldr.SymAlign(es3) if es3al != 0 { t.Errorf("SymAlign(es3): expected 0, got %d", es3al) } ldr.SetSymAlign(es3, 128) es3al = ldr.SymAlign(es3) if es3al != 128 { t.Errorf("SymAlign(es3): expected 128, got %d", es3al) } // Add some relocations to the new symbols. r1, _ := sb1.AddRel(objabi.R_ADDR)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 07 19:08:09 UTC 2024 - 12K bytes - Viewed (0) -
src/cmd/link/internal/ld/data.go
sp.SetType(sym.SINITARR) sp.SetSize(0) sp.SetDuplicateOK(true) sp.AddAddr(ctxt.Arch, s) } // symalign returns the required alignment for the given symbol s. func symalign(ldr *loader.Loader, s loader.Sym) int32 { min := int32(thearch.Minalign) align := ldr.SymAlign(s) if align >= min { return align } else if align != 0 { return min } align = int32(thearch.Maxalign)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 12 15:10:50 UTC 2024 - 100.5K bytes - Viewed (0) -
src/cmd/link/internal/loader/symbolbuilder.go
func (sb *SymbolBuilder) Data() []byte { return sb.data } func (sb *SymbolBuilder) Value() int64 { return sb.l.SymValue(sb.symIdx) } func (sb *SymbolBuilder) Align() int32 { return sb.l.SymAlign(sb.symIdx) } func (sb *SymbolBuilder) Localentry() uint8 { return sb.l.SymLocalentry(sb.symIdx) } func (sb *SymbolBuilder) OnList() bool { return sb.l.AttrOnList(sb.symIdx) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 08 15:25:19 UTC 2023 - 13.9K bytes - Viewed (0) -
src/cmd/link/internal/ld/symtab.go
s.SetType(sym.STYPE) s.SetSize(0) s.SetAlign(int32(ctxt.Arch.PtrSize)) symtype = s.Sym() s = ldr.CreateSymForUpdate("typerel.*", 0) s.SetType(sym.STYPERELRO) s.SetSize(0) s.SetAlign(int32(ctxt.Arch.PtrSize)) symtyperel = s.Sym() } else { s = ldr.CreateSymForUpdate("type:*", 0) s.SetType(sym.STYPE) s.SetSize(0) s.SetAlign(int32(ctxt.Arch.PtrSize)) symtype = s.Sym()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 13 16:29:40 UTC 2023 - 29.2K bytes - Viewed (0) -
src/cmd/link/internal/ld/xcoff.go
} // xcoffAlign returns the log base 2 of the symbol's alignment. func xcoffAlign(ldr *loader.Loader, x loader.Sym, t SymbolType) uint8 { align := ldr.SymAlign(x) if align == 0 { if t == TextSym { align = int32(Funcalign) } else { align = symalign(ldr, x) } } return logBase2(int(align)) } // logBase2 returns the log in base 2 of a. func logBase2(a int) uint8 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Dec 01 19:58:23 UTC 2023 - 51.8K bytes - Viewed (0) -
src/cmd/link/internal/loader/loader.go
// i is global index. func (l *Loader) FreeData(i Sym) { if l.IsExternal(i) { pp := l.getPayload(i) if pp != nil { pp.data = nil } } } // SymAlign returns the alignment for a symbol. func (l *Loader) SymAlign(i Sym) int32 { if int(i) >= len(l.align) { // align is extended lazily -- it the sym in question is // outside the range of the existing slice, then we assume its
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 20:26:10 UTC 2024 - 81.5K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/sockcmsg_unix_other.go
// subsystem. if SizeofPtr == 8 { salign = 4 } case "netbsd", "openbsd": // NetBSD and OpenBSD armv7 require 64-bit alignment. if runtime.GOARCH == "arm" { salign = 8 } // NetBSD aarch64 requires 128-bit alignment. if runtime.GOOS == "netbsd" && runtime.GOARCH == "arm64" { salign = 16 } case "zos": // z/OS socket macros use [32-bit] sizeof(int) alignment,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 1.2K bytes - Viewed (0) -
src/syscall/sockcmsg_unix_other.go
// subsystem. if sizeofPtr == 8 { salign = 4 } case "netbsd", "openbsd": // NetBSD and OpenBSD armv7 require 64-bit alignment. if runtime.GOARCH == "arm" { salign = 8 } // NetBSD aarch64 requires 128-bit alignment. if runtime.GOOS == "netbsd" && runtime.GOARCH == "arm64" { salign = 16 } } return (salen + salign - 1) & ^(salign - 1)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 28 18:17:57 UTC 2021 - 1.1K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/sockcmsg_dragonfly.go
// Round the length of a raw sockaddr up to align it properly. func cmsgAlignOf(salen int) int { salign := SizeofPtr if SizeofPtr == 8 && !supportsABI(_dragonflyABIChangeVersion) { // 64-bit Dragonfly before the September 2019 ABI changes still requires // 32-bit aligned access to network subsystem. salign = 4 } return (salen + salign - 1) & ^(salign - 1)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 19 21:26:10 UTC 2020 - 544 bytes - Viewed (0) -
src/syscall/sockcmsg_dragonfly.go
// Round the length of a raw sockaddr up to align it properly. func cmsgAlignOf(salen int) int { salign := sizeofPtr if sizeofPtr == 8 && !supportsABI(_dragonflyABIChangeVersion) { // 64-bit Dragonfly before the September 2019 ABI changes still requires // 32-bit aligned access to network subsystem. salign = 4 } return (salen + salign - 1) & ^(salign - 1)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Oct 20 19:33:07 UTC 2019 - 547 bytes - Viewed (0)