buildtools: fix pmdinfogen with pyelftools < 0.24
authorDmitry Kozlyuk <dmitry.kozliuk@gmail.com>
Mon, 25 Jan 2021 22:12:48 +0000 (01:12 +0300)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 25 Jan 2021 23:39:34 +0000 (00:39 +0100)
commit65ef14c576bccf74acb9ee7da11e8ea98de8fabc
tree1a33d4df6268d5d781726f5a60421636268fc98f
parent6b19edcb663c40ae7130d9ed27285c56db486a82
buildtools: fix pmdinfogen with pyelftools < 0.24

pyelftools had some breaking changes [1] and API enhancements [2]
between 0.23 (used in Ubuntu 16.04) and 0.24. Ensure compatibility with
both legacy and modern versions.

[1]: https://github.com/eliben/pyelftools/pull/76
[2]: https://github.com/eliben/pyelftools/pull/56

Signed-off-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
buildtools/pmdinfogen.py