[PATCH 1/2] riscv: Add support for GNU indirect function
Szabolcs Nagy
szabolcs.nagy@arm.com
Tue Dec 1 13:13:39 GMT 2020
The 12/01/2020 18:22, Vincent Chen wrote:
> +elf_ifunc_invoke (ElfW(Addr) addr)
> +{
> + return ((ElfW(Addr) (*) (uint64_t)) (addr)) (GLRO(dl_hwcap));
based on the aarch64 experience i'd pass at
least a (void*)0 second arg so once the
hwcap bits are used up the ifunc call abi
can be extended. (note that there is no
other way to pass data to an ifunc resolver
than the arguments: calling extern function
or object symbols don't work.)
More information about the Libc-alpha
mailing list