An Executable and Linkable Format (ELF) parser.


This module provides a parser for ELF files.

$ npm install sysvelf

Load an ELF file:

elf.load('/usr/local/bin/node', function(errfile) {
  if (err) throw err;
  console.log('version: ' + file.version);
  console.log('machine: ' + file.machine);

Read a segment:

file.readSegment(0x01, function(errbuf) {

Read a section:

file.readSection('.text', function(errbuf) {

For an example that parses an ELF header, refer to the parse.js example.

$ npm install
$ make test

The MIT License

Copyright (c) 2013 Sifteo Inc. <>