[PATCH v3] RISC-V: Fix IFUNC resolver cannot access gp pointer
Andreas Schwab
schwab@suse.de
Thu Jan 9 08:45:04 GMT 2025
On Jan 09 2025, Yangyu Chen wrote:
> But here I have a question: Why is looking up global_pointer in .dynsym,
> which is literally a SHN_ABS typed value (but we should add l_addr to it
> before use), not safe during relocation? IIRC, it does not require dynamic
> symbol resolution. Am I missing something?
See bug 31317 for a test case. Before relocation, any reference to
static data is undefined.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
More information about the Libc-alpha
mailing list