pyelftools.git
11 years agosome pep8 compliance fixes
Yann Rouillard [Sun, 19 May 2013 16:39:43 +0000 (18:39 +0200)]
some pep8 compliance fixes

11 years agominor modification in the section search loop of elfdump.py
Yann Rouillard [Sun, 19 May 2013 16:35:32 +0000 (18:35 +0200)]
minor modification in the section search loop of elfdump.py

11 years agomade a new branch to store syminfo specific patches
Yann Rouillard [Sun, 19 May 2013 16:00:00 +0000 (18:00 +0200)]
made a new branch to store syminfo specific patches

11 years agoFixed a stupid mistake on SYMINFO name (I should change my terminal font)
Yann Rouillard [Mon, 29 Apr 2013 23:59:27 +0000 (01:59 +0200)]
Fixed a stupid mistake on SYMINFO name (I should change my terminal font)

11 years agoadded elfdump comparison test
Yann Rouillard [Mon, 29 Apr 2013 23:40:33 +0000 (01:40 +0200)]
added elfdump comparison test

11 years agoAdded unit test for solaris (SUNW_syminfo section only for now)
Yann Rouillard [Mon, 29 Apr 2013 23:40:00 +0000 (01:40 +0200)]
Added unit test for solaris (SUNW_syminfo section only for now)

11 years agostart enumerating syminfo entries at index 1
Yann Rouillard [Mon, 29 Apr 2013 00:07:06 +0000 (02:07 +0200)]
start enumerating syminfo entries at index 1

11 years agoadded elfdump clone based on pyelftools, only support -y option currently
Yann Rouillard [Sun, 28 Apr 2013 23:39:51 +0000 (01:39 +0200)]
added elfdump clone based on pyelftools, only support -y option currently

11 years agoadded support for SUNW_syminfo header
Yann Rouillard [Sun, 28 Apr 2013 23:38:40 +0000 (01:38 +0200)]
added support for SUNW_syminfo header

11 years agoAdded tag v0.21 for changeset 1038c1604c31
Eli Bendersky [Wed, 17 Apr 2013 12:57:58 +0000 (05:57 -0700)]
Added tag v0.21 for changeset 1038c1604c31

11 years agoupdated manifest and changelog v0.21
Eli Bendersky [Wed, 17 Apr 2013 12:46:42 +0000 (05:46 -0700)]
updated manifest and changelog

11 years agoAdded more enums to ENUM_SH_TYPE
Eli Bendersky [Wed, 17 Apr 2013 12:35:07 +0000 (05:35 -0700)]
Added more enums to ENUM_SH_TYPE

11 years agoUpdated the e_machine enum, based on an Internet source.
automatthias [Sun, 14 Apr 2013 23:11:03 +0000 (00:11 +0100)]
Updated the e_machine enum, based on an Internet source.

http://www.scs.stanford.edu/11wi-cs140/pintos/specs/sysv-abi-update.html/ch4.eheader.html

11 years agoIssue #8: fix the dwarf_decode_address example (off-by-one error in line reporting)
Eli Bendersky [Fri, 12 Apr 2013 13:29:37 +0000 (06:29 -0700)]
Issue #8: fix the dwarf_decode_address example (off-by-one error in line reporting)

11 years agoExamples should prefer local pyelftools to installed one
Eli Bendersky [Wed, 10 Apr 2013 04:25:54 +0000 (21:25 -0700)]
Examples should prefer local pyelftools to installed one

11 years agobetter way to check if a dir exists
Eli Bendersky [Mon, 8 Apr 2013 13:45:01 +0000 (06:45 -0700)]
better way to check if a dir exists

11 years agoadd comment
Eli Bendersky [Mon, 8 Apr 2013 13:41:37 +0000 (06:41 -0700)]
add comment

11 years agoSetup sys.path properly this time (I'll update the hacking guide to
Eli Bendersky [Mon, 8 Apr 2013 13:38:57 +0000 (06:38 -0700)]
Setup sys.path properly this time (I'll update the hacking guide to
explain what's been done)

11 years agomake readelf.py pick up local elftools before system one
Eli Bendersky [Sat, 6 Apr 2013 14:05:35 +0000 (07:05 -0700)]
make readelf.py pick up local elftools before system one

11 years agoFix sys.path setup to prepend '.', rather than append. Also, remove '..'
Eli Bendersky [Sat, 6 Apr 2013 14:00:00 +0000 (07:00 -0700)]
Fix sys.path setup to prepend '.', rather than append. Also, remove '..'
and allow running only from the root directory.

11 years agoClarify how/why we look for binutils's readelf
Eli Bendersky [Sat, 6 Apr 2013 13:44:33 +0000 (06:44 -0700)]
Clarify how/why we look for binutils's readelf

11 years agodoc fixes
Eli Bendersky [Sun, 31 Mar 2013 23:57:03 +0000 (16:57 -0700)]
doc fixes

11 years agoFix some Python 3 goofs and make sure the tests execute with the correct
Eli Bendersky [Sun, 31 Mar 2013 21:19:21 +0000 (14:19 -0700)]
Fix some Python 3 goofs and make sure the tests execute with the correct
version of Python (the same the runners themselves were executed with).

11 years agoupdate docs
Eli Bendersky [Sun, 31 Mar 2013 20:58:10 +0000 (13:58 -0700)]
update docs

11 years agoFix formatting of some dynamic tag fields to match readelf
Eli Bendersky [Sun, 31 Mar 2013 14:58:21 +0000 (07:58 -0700)]
Fix formatting of some dynamic tag fields to match readelf

11 years agoTweak dynamic section handling to decipher DT_SONAME + small cleanups
Eli Bendersky [Sun, 31 Mar 2013 13:56:56 +0000 (06:56 -0700)]
Tweak dynamic section handling to decipher DT_SONAME + small cleanups

11 years agoremove some dead code
Eli Bendersky [Sun, 31 Mar 2013 03:34:57 +0000 (20:34 -0700)]
remove some dead code

11 years agoFix some other differences from the output of readelf in binutils 2.23
Eli Bendersky [Sun, 31 Mar 2013 00:47:32 +0000 (17:47 -0700)]
Fix some other differences from the output of readelf in binutils 2.23

11 years agoFix the way an include directory is inferred for a file in line programs.
Eli Bendersky [Sun, 31 Mar 2013 00:23:36 +0000 (17:23 -0700)]
Fix the way an include directory is inferred for a file in line programs.

Applies only to readelf.py at this point, because the Dwarf APIs don't provide
this functionality directly.

11 years agodebug-dump=info should print null DIEs to conform to the new readelf.
Eli Bendersky [Sat, 30 Mar 2013 23:39:30 +0000 (16:39 -0700)]
debug-dump=info should print null DIEs to conform to the new readelf.

11 years agoCosmetic changes. +added sublime project file
Eli Bendersky [Thu, 28 Mar 2013 14:38:59 +0000 (07:38 -0700)]
Cosmetic changes. +added sublime project file

11 years agoSmarter customization of READELF_PATH in run_readelf_tests
Eli Bendersky [Sat, 23 Mar 2013 13:54:54 +0000 (06:54 -0700)]
Smarter customization of READELF_PATH in run_readelf_tests

11 years agoConvert ordereddict.py line endings to unix
Eli Bendersky [Sat, 23 Mar 2013 13:44:19 +0000 (06:44 -0700)]
Convert ordereddict.py line endings to unix

11 years agoAdded license snippet to all files in the code. Whitespace cleanup.
Eli Bendersky [Sat, 23 Mar 2013 13:33:09 +0000 (06:33 -0700)]
Added license snippet to all files in the code. Whitespace cleanup.

11 years agocleanup & updated CHANGES
Eli Bendersky [Sat, 23 Mar 2013 13:16:56 +0000 (06:16 -0700)]
cleanup & updated CHANGES

11 years agomerge local with pull-request #7 merge
Eli Bendersky [Sat, 23 Mar 2013 13:14:21 +0000 (06:14 -0700)]
merge local with pull-request #7 merge

11 years agoslight TODO update
Eli Bendersky [Sat, 23 Mar 2013 13:13:57 +0000 (06:13 -0700)]
slight TODO update

11 years agoadd support for parsing of the dynamic section/segment and its tags
Mike Frysinger [Sat, 23 Mar 2013 06:47:32 +0000 (02:47 -0400)]
add support for parsing of the dynamic section/segment and its tags

11 years agotouching up after pull request 6
Eli Bendersky [Thu, 17 Jan 2013 13:41:22 +0000 (05:41 -0800)]
touching up after pull request 6

11 years agoAdd a test for parsing an ARM ELF file.
Matthew Fernandez [Thu, 17 Jan 2013 05:23:07 +0000 (16:23 +1100)]
Add a test for parsing an ARM ELF file.

11 years agoBasic support for ARM in machine header.
Matthew Fernandez [Thu, 17 Jan 2013 01:14:34 +0000 (12:14 +1100)]
Basic support for ARM in machine header.

11 years agotrim trailing whitespace and reorganize a bit of comments
Eli Bendersky [Mon, 7 Jan 2013 05:10:38 +0000 (21:10 -0800)]
trim trailing whitespace and reorganize a bit of comments

11 years agocleanups of trailing whitespace
Eli Bendersky [Mon, 7 Jan 2013 00:10:10 +0000 (16:10 -0800)]
cleanups of trailing whitespace

11 years agoTrim trailing whitespace in some code and wrap to 80 cols in README.rst
Eli Bendersky [Sun, 6 Jan 2013 22:26:49 +0000 (14:26 -0800)]
Trim trailing whitespace in some code and wrap to 80 cols in README.rst

11 years agobump version everywhere since the trunk represents an unreleased *next* version
Eli Bendersky [Sun, 6 Jan 2013 14:12:05 +0000 (06:12 -0800)]
bump version everywhere since the trunk represents an unreleased *next* version

11 years agoIssue #7: be more forgiving to incorrect DWARF that has extra NULLs in DIE trees
Eli Bendersky [Sun, 6 Jan 2013 14:09:57 +0000 (06:09 -0800)]
Issue #7: be more forgiving to incorrect DWARF that has extra NULLs in DIE trees

11 years agoremove 2.6 in tox.ini
Eli Bendersky [Sat, 29 Dec 2012 14:25:18 +0000 (06:25 -0800)]
remove 2.6 in tox.ini

11 years agorename README->README.rst to render correctly on BB
Eli Bendersky [Sat, 29 Dec 2012 14:22:09 +0000 (06:22 -0800)]
rename README->README.rst to render correctly on BB

12 years agoAdded dwarf_decode_address.py example
Eli Bendersky [Thu, 5 Jul 2012 03:32:09 +0000 (06:32 +0300)]
Added dwarf_decode_address.py example

12 years agoAdded tag v0.20 for changeset 706dbb8620bd
Eli Bendersky [Mon, 30 Jan 2012 17:21:02 +0000 (19:21 +0200)]
Added tag v0.20 for changeset 706dbb8620bd

12 years agopython 3 version and README update v0.20
Eli Bendersky [Mon, 30 Jan 2012 17:20:41 +0000 (19:20 +0200)]
python 3 version and README update

12 years agoAdded tag v0.20 for changeset 68b18168051a
Eli Bendersky [Fri, 27 Jan 2012 08:39:14 +0000 (10:39 +0200)]
Added tag v0.20 for changeset 68b18168051a

12 years agoMore changes to port to Python 3
Eli Bendersky [Fri, 27 Jan 2012 08:25:47 +0000 (10:25 +0200)]
More changes to port to Python 3
All tox tests pass now!!

12 years agoinitial efforts porting pyelftools to python 3. some basic ELF functionality working
Eli Bendersky [Fri, 27 Jan 2012 05:08:05 +0000 (07:08 +0200)]
initial efforts porting pyelftools to python 3. some basic ELF functionality working

12 years agoadding more construct's files
Eli Bendersky [Thu, 26 Jan 2012 04:51:59 +0000 (06:51 +0200)]
adding more construct's files

12 years agoimported new version of construct with Python 3 compatibility
Eli Bendersky [Thu, 26 Jan 2012 04:49:19 +0000 (06:49 +0200)]
imported new version of construct with Python 3 compatibility

12 years agoIssue #3: make examples/elf_low_high_api.py more generic. Patch by Jessica McKellar
Eli Bendersky [Wed, 11 Jan 2012 15:40:03 +0000 (17:40 +0200)]
Issue #3: make examples/elf_low_high_api.py more generic. Patch by Jessica McKellar

12 years agochange order of tox tests to run examples before readelf (since they're much shorter)
Eli Bendersky [Wed, 11 Jan 2012 15:33:47 +0000 (17:33 +0200)]
change order of tox tests to run examples before readelf (since they're much shorter)

12 years agoIssue #2: made all examples run (and test/run_examples_test.py pass) on Windows.
eli.bendersky [Wed, 11 Jan 2012 13:56:41 +0000 (15:56 +0200)]
Issue #2: made all examples run (and test/run_examples_test.py pass) on Windows.

12 years agoCHANGES update
Eli Bendersky [Sat, 7 Jan 2012 18:45:49 +0000 (20:45 +0200)]
CHANGES update

12 years agoFix Container's __pretty_str__ to use str instead of repr. This provides more consist...
Eli Bendersky [Sat, 7 Jan 2012 18:44:43 +0000 (20:44 +0200)]
Fix Container's __pretty_str__ to use str instead of repr. This provides more consistent output across platforms for integers. Patch by Jessica McKellar

12 years agoadd ref output for dwarf_range_lists
Eli Bendersky [Sat, 7 Jan 2012 14:39:23 +0000 (16:39 +0200)]
add ref output for dwarf_range_lists

12 years agominor tweaks + new tag for release
Eli Bendersky [Fri, 6 Jan 2012 04:01:15 +0000 (06:01 +0200)]
minor tweaks + new tag for release

12 years agoAdded tag v0.10 for changeset b1c15add0da8
Eli Bendersky [Fri, 6 Jan 2012 04:00:59 +0000 (06:00 +0200)]
Added tag v0.10 for changeset b1c15add0da8

12 years agoadded parsing of .debug_ranges v0.10
Eli Bendersky [Thu, 29 Dec 2011 04:10:53 +0000 (06:10 +0200)]
added parsing of .debug_ranges

12 years agoupdated MANIFEST and tox to include and run example tests
Eli Bendersky [Wed, 28 Dec 2011 08:17:26 +0000 (10:17 +0200)]
updated MANIFEST and tox to include and run example tests

12 years agoinitial version of example tests
Eli Bendersky [Wed, 28 Dec 2011 08:06:55 +0000 (10:06 +0200)]
initial version of example tests

12 years agoa bit of refactoring in the test/ dir + completed dwarf_location_lists example
Eli Bendersky [Wed, 28 Dec 2011 07:21:14 +0000 (09:21 +0200)]
a bit of refactoring in the test/ dir  + completed dwarf_location_lists example

12 years agolocation lists kinda working. need more docs & readelf support
Eli Bendersky [Wed, 28 Dec 2011 04:37:16 +0000 (06:37 +0200)]
location lists kinda working. need more docs & readelf support

12 years ago a bit progress on locationlists
Eli Bendersky [Tue, 27 Dec 2011 04:51:20 +0000 (06:51 +0200)]
 a bit progress on locationlists

12 years agobasic preparations for parsing location lists
Eli Bendersky [Tue, 27 Dec 2011 03:25:35 +0000 (05:25 +0200)]
basic preparations for parsing location lists

12 years agolazy parsing of CUs
Eli Bendersky [Mon, 26 Dec 2011 04:19:50 +0000 (06:19 +0200)]
lazy parsing of CUs

12 years agosimple refactoring of DWARF expr descriptions to enable use from other callers
Eli Bendersky [Mon, 26 Dec 2011 03:46:56 +0000 (05:46 +0200)]
simple refactoring of DWARF expr descriptions to enable use from other callers

12 years agoanother example
Eli Bendersky [Sun, 25 Dec 2011 03:38:46 +0000 (05:38 +0200)]
another example

12 years agomade all tests run with Python 2.6 that has unittest2 installed. Added basic tox...
Eli Bendersky [Sat, 24 Dec 2011 04:55:59 +0000 (06:55 +0200)]
made all tests run with Python 2.6 that has unittest2 installed. Added basic tox.ini file for running tox tests

12 years agofix setup.py; add verbose mode (off by default) and exit code to run_readelf_test
Eli Bendersky [Sat, 24 Dec 2011 03:50:42 +0000 (05:50 +0200)]
fix setup.py; add verbose mode (off by default) and exit code to run_readelf_test

12 years agofixed setup script to include internal packages as well, and removed ^M from README
Eli Bendersky [Fri, 23 Dec 2011 07:42:37 +0000 (09:42 +0200)]
fixed setup script to include internal packages as well, and removed ^M from README

12 years agoMANIFEST tweaks + arranging examples to find elftools even if it's not installed
Eli Bendersky [Thu, 22 Dec 2011 18:03:06 +0000 (20:03 +0200)]
MANIFEST tweaks + arranging examples to find elftools even if it's not installed

12 years agoadded basic TODO with distribution checklist
Eli Bendersky [Thu, 22 Dec 2011 14:05:41 +0000 (16:05 +0200)]
added basic TODO with distribution checklist

12 years agoinitial addition of files needed for setup
Eli Bendersky [Thu, 22 Dec 2011 13:53:52 +0000 (15:53 +0200)]
initial addition of files needed for setup

12 years agodocumentation fixes + new examples
Eli Bendersky [Thu, 22 Dec 2011 13:22:00 +0000 (15:22 +0200)]
documentation fixes + new examples

12 years agoupdated README
Eli Bendersky [Thu, 22 Dec 2011 03:42:17 +0000 (05:42 +0200)]
updated README

12 years agosome doc updates
Eli Bendersky [Tue, 20 Dec 2011 04:45:00 +0000 (06:45 +0200)]
some doc updates

12 years agofix ReST links in README
Eli Bendersky [Sun, 18 Dec 2011 04:29:27 +0000 (06:29 +0200)]
fix ReST links in README

12 years agoupdated README
Eli Bendersky [Sun, 18 Dec 2011 04:25:12 +0000 (06:25 +0200)]
updated README

12 years agosome cosmetic changes + updating README
Eli Bendersky [Sun, 18 Dec 2011 03:41:16 +0000 (05:41 +0200)]
some cosmetic changes + updating README

12 years agoadding license + some filename cleanup
Eli Bendersky [Sat, 17 Dec 2011 12:48:42 +0000 (14:48 +0200)]
adding license + some filename cleanup

12 years agoupdate unittest runner
Eli Bendersky [Sat, 17 Dec 2011 12:36:39 +0000 (14:36 +0200)]
update unittest runner

12 years agocleanup
Eli Bendersky [Sat, 17 Dec 2011 12:34:30 +0000 (14:34 +0200)]
cleanup

12 years agorenamed 'tests' dir to 'test'
Eli Bendersky [Sat, 17 Dec 2011 12:34:02 +0000 (14:34 +0200)]
renamed 'tests' dir to 'test'

12 years agochanged file permissions
Eli Bendersky [Fri, 16 Dec 2011 11:17:39 +0000 (13:17 +0200)]
changed file permissions

12 years agofixed previous problem
Eli Bendersky [Fri, 16 Dec 2011 11:16:27 +0000 (13:16 +0200)]
fixed previous problem

12 years agoAdded new test file and fixing some problems related to it. not completely working yet
Eli Bendersky [Fri, 16 Dec 2011 11:05:54 +0000 (13:05 +0200)]
Added new test file and fixing some problems related to it. not completely working yet

12 years agomore horrible hacks to run_readelf_tests to pass with a newer readelf on 32-bit
Eli Bendersky [Fri, 16 Dec 2011 09:08:45 +0000 (11:08 +0200)]
more horrible hacks to run_readelf_tests to pass with a newer readelf on 32-bit

12 years agoadded test file (clang-compiled). fixed readelf handling of unknown attributes
Eli Bendersky [Fri, 16 Dec 2011 06:13:48 +0000 (08:13 +0200)]
added test file (clang-compiled). fixed readelf handling of unknown attributes

12 years agoadded some documentation to callframe.py
Eli Bendersky [Fri, 16 Dec 2011 05:32:28 +0000 (07:32 +0200)]
added some documentation to callframe.py

12 years agofixed a bug in taking the last line from CIE to first line in FDE - need copy.copy...
Eli Bendersky [Fri, 16 Dec 2011 04:46:19 +0000 (06:46 +0200)]
fixed a bug in taking the last line from CIE to first line in FDE - need copy.copy! now all current readelf tests run successfully

12 years agoreadelf --debug-dump=frames-interp initial implementation completed. some tests vs...
Eli Bendersky [Fri, 16 Dec 2011 04:39:49 +0000 (06:39 +0200)]
readelf --debug-dump=frames-interp initial implementation completed. some tests vs. readelf run

12 years agostarted implementing debug-dump=frames-interp
Eli Bendersky [Thu, 15 Dec 2011 14:11:06 +0000 (16:11 +0200)]
started implementing debug-dump=frames-interp

12 years agodecoding seems to somewhat work. some unit tests pass
Eli Bendersky [Thu, 15 Dec 2011 13:28:35 +0000 (15:28 +0200)]
decoding seems to somewhat work. some unit tests pass