github.com/pkujhd/goloader@v0.0.0-20240411034752-1a28096bd7bd/objabi/symkind/symkind.1.8.go (about) 1 //go:build go1.8 && !go1.9 2 // +build go1.8,!go1.9 3 4 package symkind 5 6 import "cmd/objfile/obj" 7 8 // copy from $GOROOT/src/cmd/internal/obj/link.go 9 const ( 10 // An otherwise invalid zero value for the type 11 Sxxx = int(obj.Sxxx) 12 // Executable instructions 13 STEXT = int(obj.STEXT) 14 // Read only static data 15 SRODATA = int(obj.SRODATA) 16 // Static data that does not contain any pointers 17 SNOPTRDATA = int(obj.SNOPTRDATA) 18 // Static data 19 SDATA = int(obj.SDATA) 20 // Statically data that is initially all 0s 21 SBSS = int(obj.SBSS) 22 // Statically data that is initially all 0s and does not contain pointers 23 SNOPTRBSS = int(obj.SNOPTRBSS) 24 // Thread-local data that is initally all 0s 25 STLSBSS = int(obj.STLSBSS) 26 ) 27 28 func SymKindString(symKind int) string { 29 return (obj.SymKind)(symKind).String() 30 }