arm: Simplify elf_machine_{load_address,dynamic}
authorFangrui Song <maskray@google.com>
Wed, 18 Aug 2021 18:13:03 +0000 (11:13 -0700)
committerFangrui Song <maskray@google.com>
Wed, 18 Aug 2021 18:13:03 +0000 (11:13 -0700)
commitbca0f5cbc9257c13322b99e55235c4f21ba0bd82
tree2601f7856347a88e04bc1faac1f1887caec9d139
parent34b4624b04fc8f038b2c329ca7560197320615b4
arm: Simplify elf_machine_{load_address,dynamic}

and drop reliance on _GLOBAL_OFFSET_TABLE_[0] being the link-time
address of _DYNAMIC. &__ehdr_start is a better way to get the load address.

This is similar to commits b37b75d269883a2c553bb7019a813094eb4e2dd1
(x86-64) and 43d06ed218fc8be58987bdfd00e21e5720f0b862 (aarch64).

Reviewed-by: Joseph Myers <joseph@codesourcery.com>
sysdeps/arm/dl-machine.h