radiance/pkg/sbf/program.go

16 lines
345 B
Go
Raw Normal View History

2022-09-02 21:01:09 -07:00
package sbf
// Program is a loaded SBF program.
type Program struct {
2022-09-02 23:49:13 -07:00
RO []byte // read-only segment containing text and ELFs
Text []byte
2022-09-04 15:28:39 -07:00
TextVA uint64
2022-09-02 23:49:13 -07:00
Entrypoint uint64 // PC
2022-09-04 15:28:39 -07:00
Funcs map[uint32]int64
2022-09-02 23:49:13 -07:00
}
// Verify runs the static bytecode verifier.
func (p *Program) Verify() error {
return NewVerifier(p).Verify()
2022-09-02 21:01:09 -07:00
}