Support parsing symbol table in dynamic segment.
authorNam T. Nguyen <namnguyen@chromium.org>
Fri, 25 Jul 2014 18:41:53 +0000 (11:41 -0700)
committerNam T. Nguyen <namnguyen@chromium.org>
Tue, 29 Jul 2014 16:04:40 +0000 (09:04 -0700)
commit687baa0cd6be158a32756fc7dd475e0e7f98f4d2
tree364082bc5873328fc63e6e3c0a96a31433d15d8e
parentbf1b5bfcaf60206821a4f450c17e70b143b1a74c
Support parsing symbol table in dynamic segment.

Unlike SymbolTableSection, this patch reads from DT_SYMTAB, and
DT_STRTAB in PT_DYNAMIC segment. It heuristically determines the end of
DT_SYMTAB by finding the next higher pointer in the same segment. GNU
libc (dl-addr.c) assumes that DT_STRTAB comes after DT_SYMTAB.
elftools/elf/dynamic.py
test/test_dynamic.py