public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/2] ELF tests in Python and libio vtables/RELRO interaction
@ 2022-04-11 12:56 Florian Weimer
  2022-04-11 12:56 ` [PATCH 1/2] scripts: Add glibcelf.py module Florian Weimer
  2022-04-11 12:56 ` [PATCH 2/2] Default to --with-default-link=no (bug 25812) Florian Weimer
  0 siblings, 2 replies; 4+ messages in thread
From: Florian Weimer @ 2022-04-11 12:56 UTC (permalink / raw)
  To: libc-alpha

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-04-11 13:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-11 12:56 [PATCH 0/2] ELF tests in Python and libio vtables/RELRO interaction Florian Weimer
2022-04-11 12:56 ` [PATCH 1/2] scripts: Add glibcelf.py module Florian Weimer
2022-04-11 12:56 ` [PATCH 2/2] Default to --with-default-link=no (bug 25812) Florian Weimer
2022-04-11 13:20   ` Andreas Schwab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).