Contents

p-x9/elfkit

Library for parsing ELF files to obtain various information.

Features

  • parse segments
  • parse sections
  • parse dynamics
  • symbol list
  • get all cstrings
  • rebase infos
  • notes
  • ...

Usage

Load from file

For reading from file, use the ELFFile structure.

Reading from a file can be as follows.

let path = "Path to MachO file"
let url = URL(fileURLWithPath: path)

let elf = try ELFFile(url: url)

Example Codes

There are a variety of uses, but most show a basic example that prints output to the Test directory.

Load from file

The following file contains sample code. ELFFilePrintTests

License

ELFKit is released under the MIT License. See LICENSE

Package Metadata

Repository: p-x9/elfkit

Default branch: main

README: README.md