Skip to content

An Executable and Linkable Format (ELF) parser for Node.js.

License

Notifications You must be signed in to change notification settings

sifteo/node-elf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-elf

This module provides a parser for ELF files.

Install

$ npm install sysvelf

Usage

Load an ELF file:

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

Read a segment:

file.readSegment(0x01, function(err, buf) {
});

Read a section:

file.readSection('.text', function(err, buf) {
});

Examples

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

Tests

$ npm install
$ make test

Build Status

Credits

License

The MIT License

Copyright (c) 2013 Sifteo Inc. <http://www.sifteo.com/>

About

An Executable and Linkable Format (ELF) parser for Node.js.

Resources

License

Stars

Watchers

Forks

Packages

No packages published