How can I read the dynamic section of an ELF file in python

2.2k views Asked by At

I want to get information about the dynamic section of an ELF file. Basically the same information I get using the command line:

readelf -d elfFile

1

There are 1 answers

0
Maximilian On BEST ANSWER

using pyelftools:

tag = section.get_tag(n)

gives the nth tag of a specific section