]> git.ipfire.org Git - thirdparty/glibc.git/commit
scripts: Add glibcelf.py module
authorFlorian Weimer <fweimer@redhat.com>
Mon, 11 Apr 2022 09:28:08 +0000 (11:28 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Fri, 22 Apr 2022 09:00:43 +0000 (11:00 +0200)
commit70f1eecdc12dbfc742f29844be215eacf51c5014
tree100be1c354d54f38be7f9d588cc3bf6c2a7005d6
parentd3feff2232ec27f05ca619ca8b314155d9018224
scripts: Add glibcelf.py module

Hopefully, this will lead to tests that are easier to maintain.  The
current approach of parsing readelf -W output using regular expressions
is not necessarily easier than parsing the ELF data directly.

This module is still somewhat incomplete (e.g., coverage of relocation
types and versioning information is missing), but it is sufficient to
perform basic symbol analysis or program header analysis.

The EM_* mapping for architecture-specific constant classes (e.g.,
SttX86_64) is not yet implemented.  The classes are defined for the
benefit of elf/tst-glibcelf.py.

Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
(cherry picked from commit 30035d67728a846fa39749cd162afd278ac654c4)
elf/Makefile
elf/tst-glibcelf.py [new file with mode: 0644]
scripts/glibcelf.py [new file with mode: 0644]