Skip to content
/ ELFKit Public

🔬 A Swift library for parsing ELF files to obtain various information.

License

Notifications You must be signed in to change notification settings

p-x9/ELFKit

Repository files navigation

ELFKit

Library for parsing ELF files to obtain various information.

Github issues Github forks Github stars Github top language

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(string: 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

Related Projects

  • MachOKit A swift library for parsing MachO binaries

License

ELFKit is released under the MIT License. See LICENSE