elf: Remove prelink support

System Internals / glibc - Adhemerval Zanella [linaro.org] - 10 February 2022 12:16 UTC

Prelinked binaries and libraries still work, the dynamic tags DT_GNU_PRELINKED, DT_GNU_LIBLIST, DT_GNU_CONFLICT just ignored (meaning the process is reallocated as default).

The loader environment variable TRACE_PRELINKING is also removed, since it used solely on prelink.

Checked on x86_64-linux-gnu, i686-linux-gnu, and aarch64-linux-gnu.

6628c742b2 elf: Remove prelink support
NEWS | 4 +-
elf/Makefile | 16 ---
elf/dl-conflict.c | 77 ----------
elf/dl-deps.c | 66 ---------
elf/dl-error-skeleton.c | 4 +-
elf/dl-load.c | 3 +-
elf/dl-lookup.c | 161 ---------------------
elf/do-rel.h | 3 -
elf/rtld.c | 250 +++++++--------------------------
elf/tst-prelink-cmp.c | 49 -------
elf/tst-prelink.c | 29 ----
include/link.h | 4 -
sysdeps/alpha/dl-machine.h | 15 --
sysdeps/arm/dl-machine.h | 4 -
sysdeps/generic/ldsodefs.h | 11 --
sysdeps/i386/dl-machine.h | 16 +--
sysdeps/or1k/dl-machine.h | 4 -
sysdeps/powerpc/powerpc32/dl-machine.h | 31 ++--
sysdeps/powerpc/powerpc64/dl-machine.h | 37 -----
sysdeps/s390/s390-32/dl-machine.h | 22 ++-
sysdeps/s390/s390-64/dl-machine.h | 22 ++-
sysdeps/sh/dl-machine.h | 2 +-
sysdeps/sparc/sparc32/dl-machine.h | 52 +------
sysdeps/sparc/sparc64/dl-machine.h | 72 +---------
sysdeps/x86_64/dl-machine.h | 48 +++----
25 files changed, 117 insertions(+), 885 deletions(-)

Upstream: sourceware.org


  • Share