x86_64: Simplify elf_machine_{load_address,dynamic}
authorFangrui Song <maskray@google.com>
Tue, 17 Aug 2021 17:45:57 +0000 (10:45 -0700)
committerFangrui Song <maskray@google.com>
Tue, 17 Aug 2021 17:45:57 +0000 (10:45 -0700)
commitb37b75d269883a2c553bb7019a813094eb4e2dd1
tree31b632b013008d61958678ee964fe2795db7f50f
parent33c50ef42878b07ee6ead8b3f1a81d8c2c74697c
x86_64: 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.

Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
sysdeps/x86_64/dl-machine.h