package owee

  1. Overview
  2. Docs
OCaml library to work with DWARF format

Install

Dune Dependency

Authors

Maintainers

Sources

owee-0.4.tbz
sha256=6b7f3c4241ba41732ffc04705cf5935cf917b7ab3cc3f514be21cee63c88ab14
sha512=8625045c55abd99568c9720aebd4b2ef1705287cb9c60047e25d291db169ca6b956e6308001afa3e8bd4507dc56e9bd108d5aea27742384e7d6513817d205ebd

doc/owee/Owee_elf_notes/index.html

Module Owee_elf_notesSource

Sourcetype header = {
  1. owner : string;
  2. typ : int;
    (*

    each owner defines its own types

    *)
  3. size : int;
    (*

    size of the note's descriptor that follows the header

    *)
}
Sourceval read_header : Owee_buf.cursor -> header
Sourceval read_desc_size : Owee_buf.cursor -> expected_owner:string -> expected_type:int -> int

Reads the header and returns the size of the note's descriptor. Raises if the expected_owner or expected_type does not match the header.

Sourceexception Section_not_found of string
Sourcemodule Stapsdt : sig ... end
Sourceval read_buildid : Owee_buf.t -> Owee_elf.section array -> string

get_buildid buf sections Reads ".note.gnu.build-id" section, checks that the owner is "GNU" and that the type is NT_GNU_BUILD_ID=3 and returns the content. Expects buf to point to the beginning of an elf file.

OCaml

Innovation. Community. Security.