jon.recoil.org

Module For_jit.Assembled_section

type t = buffer
type relocation = Relocation.t
val size : t -> int
val contents : t -> string
val contents_mut : t -> bytes
val relocations : t -> relocation list
val find_symbol_offset : t -> Asm_targets.Asm_symbol.t -> int option

Find the offset of a symbol within this section

val find_label_offset : t -> Asm_targets.Asm_label.t -> int option

Find the offset of a label within this section

val iter_labels_and_symbols : t -> f:(Binary_emitter_intf.target -> offset:int -> unit) -> unit

Iterate over all symbols and labels defined in this section

val add_patch : t -> offset:int -> size:Binary_emitter_intf.data_size -> data:int64 -> unit

Patch bytes at the given offset