Lines Matching refs:symbol
54 func InjectStringSymbol(file *File, w io.Writer, symbol, value, from string) error { argument
55 offset, size, err := findSymbol(file, symbol)
85 func InjectUint64Symbol(file *File, w io.Writer, symbol string, value uint64) error {
86 offset, size, err := findSymbol(file, symbol)
92 return fmt.Errorf("symbol %q is not a uint64, it is %d bytes long", symbol, size)
124 for i, symbol := range file.Symbols {
125 if symbol.Name == symbolName {
129 if file.Symbols[n].Section != symbol.Section {
133 if file.Symbols[n].Addr > symbol.Addr {
138 size := symbol.Size
144 end = symbol.Section.Size
147 if end <= symbol.Addr || end > symbol.Addr+4096 {
148 …maxUint64, maxUint64, fmt.Errorf("symbol end address does not seem valid, %x:%x", symbol.Addr, end)
151 size = end - symbol.Addr
154 offset := symbol.Section.Offset + symbol.Addr