public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Florian Weimer <fweimer@redhat.com>
To: libc-alpha@sourceware.org
Subject: [PATCH 0/2] ELF tests in Python and libio vtables/RELRO interaction
Date: Mon, 11 Apr 2022 14:56:20 +0200	[thread overview]
Message-ID: <cover.1649676847.git.fweimer@redhat.com> (raw)

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


             reply	other threads:[~2022-04-11 12:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-11 12:56 Florian Weimer [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1649676847.git.fweimer@redhat.com \
    --to=fweimer@redhat.com \
    --cc=libc-alpha@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).