]> git.ipfire.org Git - thirdparty/glibc.git/commit
riscv: Drop reliance on _GLOBAL_OFFSET_TABLE_[0]
authorFangrui Song <maskray@google.com>
Wed, 18 Aug 2021 17:01:31 +0000 (10:01 -0700)
committerFangrui Song <maskray@google.com>
Wed, 18 Aug 2021 17:01:31 +0000 (10:01 -0700)
commit34b4624b04fc8f038b2c329ca7560197320615b4
treea7f709bc2b7140002fef7eb6714dc148d8423777
parent710ba420fd417a4a82e0ad2e998e5f3b972cb503
riscv: Drop reliance on _GLOBAL_OFFSET_TABLE_[0]

&__ehdr_start is a better way to get the load address.

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

Reviewed-by: Palmer Dabbelt <palmerdabbelt@google.com>
sysdeps/riscv/dl-machine.h