elf: Unconditionally use __ehdr_start
authorFangrui Song <maskray@google.com>
Tue, 10 Aug 2021 18:04:56 +0000 (11:04 -0700)
committerFangrui Song <maskray@google.com>
Tue, 10 Aug 2021 18:04:56 +0000 (11:04 -0700)
commit302247c89121e8d4c7629e589edbb4974fff6edb
treed0af2abbabc149fac1e598639652b60ea5221c8a
parent13710e7e6af6c8965cc9a63a0660cb4ce1966557
elf: Unconditionally use __ehdr_start

We can consider __ehdr_start (from binutils 2.23 onwards)
unconditionally supported, since configure.ac requires binutils>=2.25.

The configure.ac check is related to an ia64 bug fixed by binutils 2.24.
See https://sourceware.org/pipermail/libc-alpha/2014-August/053503.html

Tested on x86_64-linux-gnu. Tested build-many-glibcs.py with
aarch64-linux-gnu and s390x-linux-gnu.

Reviewed-by: Szabolcs Nagy <szabolcs.nagy@arm.com>
config.h.in
configure
configure.ac
elf/rtld.c