mbox series

[v2,0/4] elf: More careful placement of the main malloc switch

Message ID cover.1730374087.git.fweimer@redhat.com
Headers show
Series elf: More careful placement of the main malloc switch | expand

Message

Florian Weimer Oct. 31, 2024, 4:09 p.m. UTC
This series is a rebase on top of current development.  The second patch
is new, it fixes a build failure with the following patch in profiling
mode because it reused the consider_profiling identifier that was
originally defined as a macro.

Tested on i686-linux-gnu and x86_64-linux-gnu.

Florian Weimer (4):
  elf: rtld_multiple_ref is always true
  elf: Do not define consider_profiling, consider_symbind as macros
  elf: Introduce _dl_relocate_object_no_relro
  elf: Switch to main malloc after final ld.so self-relocation

 elf/Makefile                     |   9 +++
 elf/dl-reloc.c                   |  32 +++++-----
 elf/dl-support.c                 |   3 +-
 elf/rtld.c                       | 101 ++++++++++++++-----------------
 elf/tst-rtld-no-malloc-audit.c   |   1 +
 elf/tst-rtld-no-malloc-preload.c |   1 +
 elf/tst-rtld-no-malloc.c         |  75 +++++++++++++++++++++++
 sysdeps/generic/ldsodefs.h       |   7 +++
 8 files changed, 155 insertions(+), 74 deletions(-)
 create mode 100644 elf/tst-rtld-no-malloc-audit.c
 create mode 100644 elf/tst-rtld-no-malloc-preload.c
 create mode 100644 elf/tst-rtld-no-malloc.c


base-commit: 383e4f53cbd52a0e697a80a3aa7a7ef891ead8b8