package binsec

  1. Overview
  2. Docs

doc/binsec_kernel_loader/Binsec_kernel_loader/Loader_utils/Binary_loc/index.html

Module Loader_utils.Binary_locSource

Sourcetype t = private
  1. | Address of Binsec_base.Virtual_address.t
  2. | Name of string
  3. | Offset of t * int

An abstract representation for binary locations

Sourceval of_string : string -> t

Constructors

Sourceval name : string -> t
Sourceval offset : int -> t -> t
Sourceval pp : Stdlib.Format.formatter -> t -> unit
Accessors
Sourceval to_virtual_address_from_file : filename:string -> t -> Binsec_base.Virtual_address.t option

virtual_address_from_file file t resolves the name Name name w.r.t to the loaded binary from file if needed.

Sourceval to_virtual_address : img:Loader.Img.t -> t -> Binsec_base.Virtual_address.t option

virtual_address img t resolves the name Name name w.r.t to the loaded img binary if needed.