From: Florian Weimer <fweimer@redhat.com>
To: libc-alpha@sourceware.org
Subject: [PATCH v2 0/3] Restore support for _r_debug copy relocations & interposition
Date: Tue, 06 Sep 2022 12:27:16 +0200 [thread overview]
Message-ID: <cover.1662456433.git.fweimer@redhat.com> (raw)
The previous version used an optimization for symbol lookups that is not
valid in the presence of interposition. This version performs a full
unversioned symbol lookup with scope traversal instead. This way, an
interposing definition in a shared object is picked up as well.
Tested on i686-linux-gnu, built with build-many-glibcs.py.
Thanks,
Florian
Florian Weimer (3):
elf: Introduce separate _r_debug_array variable
elf: Introduce _dl_debug_change_state
elf: Restore support for _r_debug interpositions and copy relocations
elf/Makefile | 9 +++
elf/dl-close.c | 6 +-
elf/dl-debug.c | 144 ++++++++++++++++++++++++++-----------
elf/dl-load.c | 6 +-
elf/dl-open.c | 5 +-
elf/rtld.c | 9 +--
elf/tst-dlmopen4-nonpic.c | 2 +
elf/tst-dlmopen4-pic.c | 2 +
elf/tst-dlmopen4.c | 22 ++++++
sysdeps/generic/ldsodefs.h | 20 ++++--
10 files changed, 165 insertions(+), 60 deletions(-)
create mode 100644 elf/tst-dlmopen4-nonpic.c
create mode 100644 elf/tst-dlmopen4-pic.c
base-commit: dbb75513f5cf9285c77c9e55777c5c35b653f890
--
2.37.2
next reply other threads:[~2022-09-06 10:27 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-06 10:27 Florian Weimer [this message]
2022-09-06 10:27 ` [PATCH v2 1/3] elf: Introduce separate _r_debug_array variable Florian Weimer
2022-09-06 10:27 ` [PATCH v2 2/3] elf: Introduce _dl_debug_change_state Florian Weimer
2022-09-06 10:27 ` [PATCH v2 3/3] elf: Restore support for _r_debug interpositions and copy relocations Florian Weimer
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.1662456433.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).