]> sourceware.org Git - 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 08:58:32 +0000 (10:58 +0200)
commit30035d67728a846fa39749cd162afd278ac654c4
tree172806ab5cbfed5c5860ba251d990813181694d1
parent3e29dc5233a0c1b78dd008383ca12afac7d9366f
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>
elf/Makefile
elf/tst-glibcelf.py [new file with mode: 0644]
scripts/glibcelf.py [new file with mode: 0644]
This page took 0.040747 seconds and 5 git commands to generate.