public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] Restore support for _r_debug copy relocations & interposition
@ 2022-09-06 10:27 Florian Weimer
  2022-09-06 10:27 ` [PATCH v2 1/3] elf: Introduce separate _r_debug_array variable Florian Weimer
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Florian Weimer @ 2022-09-06 10:27 UTC (permalink / raw)
  To: libc-alpha

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


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

end of thread, other threads:[~2022-09-06 10:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-06 10:27 [PATCH v2 0/3] Restore support for _r_debug copy relocations & interposition Florian Weimer
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

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).