public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] Predictable ELF destructor ordering
@ 2022-02-03 15:17 Florian Weimer
  2022-02-03 15:17 ` [PATCH v2 1/3] elf: Do not rely on relocation dependencies for destructor sorting Florian Weimer
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Florian Weimer @ 2022-02-03 15:17 UTC (permalink / raw)
  To: libc-alpha

These patches remove the dependency sorting from dlclose and process
shutdown, so that destructor order is the reverse of constructor order
in more cases (always if the process does not call dlclose).

Tested on i686-linux-gnu and x86_64-linux-gnu.  Built with
build-many-glibcs.py.

Thanks,
Florian

Florian Weimer (3):
  elf: Do not rely on relocation dependencies for destructor sorting
  elf: Do not run constructors for proxy objects
  elf: Always call destructors in reverse constructor order

 elf/dl-close.c             | 130 ++++++++++++++----------
 elf/dl-deps.c              |   3 +-
 elf/dl-fini.c              | 196 +++++++++++++------------------------
 elf/dl-init.c              |  20 ++++
 elf/dl-sort-maps.c         | 105 ++------------------
 elf/dso-sort-tests-1.def   |   6 +-
 elf/tst-audit23.c          |  44 +++++----
 include/link.h             |   4 +
 sysdeps/generic/ldsodefs.h |   6 +-
 9 files changed, 212 insertions(+), 302 deletions(-)


base-commit: 97ba273b505763325efd802dc3a9562dbba79579
-- 
2.34.1


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

end of thread, other threads:[~2023-08-22 10:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-03 15:17 [PATCH v2 0/3] Predictable ELF destructor ordering Florian Weimer
2022-02-03 15:17 ` [PATCH v2 1/3] elf: Do not rely on relocation dependencies for destructor sorting Florian Weimer
2022-02-14 20:11   ` Adhemerval Zanella
2022-02-03 15:18 ` [PATCH v2 2/3] elf: Do not run constructors for proxy objects Florian Weimer
2022-02-03 15:18 ` [PATCH v2 3/3] elf: Always call destructors in reverse constructor order Florian Weimer
2022-02-15 11:59   ` Adhemerval Zanella
2023-08-22 10:46     ` 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).