[0/3] Args adjustment with ./ld.so exe [BZ #23293]

Message ID cover.1649767418.git.szabolcs.nagy@arm.com
Headers
Series Args adjustment with ./ld.so exe [BZ #23293] |

Message

Szabolcs Nagy April 12, 2022, 12:55 p.m. UTC
  Trying to make the ld.so start code more generic and less error prone.

The introduced DL_NEED_START_ARGS_ADJUST may not be the nicest
solution, but it avoids affecting code on other targets for now.

Szabolcs Nagy (3):
  Remove _dl_skip_args_internal declaration
  aarch64: Use generic argv adjustment in ld.so [BZ #23293]
  aarch64: Move ld.so _start to separate file

 elf/rtld.c                          | 56 +++++++++++++++++++++
 sysdeps/aarch64/Makefile            |  1 +
 sysdeps/aarch64/dl-machine.h        | 77 +----------------------------
 sysdeps/aarch64/dl-start.S          | 53 ++++++++++++++++++++
 sysdeps/aarch64/dl-sysdep.h         |  2 +-
 sysdeps/generic/ldsodefs.h          |  6 +--
 sysdeps/unix/sysv/linux/dl-sysdep.c | 10 ++++
 7 files changed, 125 insertions(+), 80 deletions(-)
 create mode 100644 sysdeps/aarch64/dl-start.S