Add symbol name resolution and value retrieval
authorPeter Griess <pgriess@fb.com>
Fri, 15 Mar 2013 16:12:46 +0000 (09:12 -0700)
committerOwen Yamauchi <oyamauchi@fb.com>
Wed, 27 Mar 2013 21:40:38 +0000 (14:40 -0700)
commitde2cc5ee0d80fb06c95b7ad8c73c8a910a5a114d
treeb411311292d6fc936bb539529fedaf404588e9da
parentd7050ad5481a1a6dc958816655a4535cd2fd2df2
Add symbol name resolution and value retrieval

Summary:
- Add ElfFile::getSymbolByName(), which finds a Symbol object
corresponding to the symbol w/ the given name
- Add ElfFile::getSymbolValue(), which resolves the Symbol object to a
value in the mapped file, following pointers if necessary

Test Plan: - Unit tests

Reviewed By: simpkins@fb.com

FB internal diff: D740183
folly/experimental/symbolizer/Elf-inl.h
folly/experimental/symbolizer/Elf.cpp
folly/experimental/symbolizer/Elf.h
folly/experimental/symbolizer/test/ElfTests.cpp [new file with mode: 0644]