Skip to content
Commit 34b4624b authored by Fangrui Song's avatar Fangrui Song
Browse files

riscv: Drop reliance on _GLOBAL_OFFSET_TABLE_[0]



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

This is similar to commits b37b75d2
(x86-64) and 43d06ed2 (aarch64).

Reviewed-by: default avatarPalmer Dabbelt <palmerdabbelt@google.com>
parent 710ba420
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment