[PATCH 0/2] ELF tests in Python and libio vtables/RELRO interaction
Florian Weimer
fweimer@redhat.com
Mon Apr 11 12:56:20 GMT 2022
The first patch adds a basic ELF file parser (without any external
dependencies). The second patch switches to the custom linker script by
default, fixing bug 25812. It uses a new Python test to verify that the
vtables are indeed covered by PT_GNU_RELRO. I considered moving the
vtables to .data.rel.ro instead, but this would still leave some
function pointer arrays unprotected.
Tested on i686-linux-gnu and x86_64-linux-gnu. Built with
build-many-glibcs.py (after fixing the recent Hurd build regression
locally).
Florian Weimer (2):
scripts: Add glibcelf.py module
Default to --with-default-link=no (bug 25812)
INSTALL | 6 +
configure | 65 +-
configure.ac | 55 +-
elf/Makefile | 33 +
elf/tst-relro-symbols.py | 137 +++++
manual/install.texi | 6 +
scripts/glibcelf.py | 842 ++++++++++++++++++++++++++
sysdeps/unix/sysv/linux/ia64/Makefile | 6 +
8 files changed, 1032 insertions(+), 118 deletions(-)
create mode 100644 elf/tst-relro-symbols.py
create mode 100644 scripts/glibcelf.py
base-commit: 1a85970f41ea1e5abe6da2298a5e8fedcea26b70
--
2.35.1
More information about the Libc-alpha
mailing list