mirror of git://git.musl-libc.org/musl
234c58467c
clone calls back to a function pointer provided by the caller, which will actually be a pointer to a function descriptor on fdpic. the obvious solution is to have a separate version of clone for fdpic, but I have taken a simpler approach to go around the problem. instead of calling the pointed-to function from asm, a direct call is made to an internal C function which then calls the pointed-to function. this lets the C compiler generate the appropriate calling convention for an indirect call with no need for ABI-specific assembly. |
||
---|---|---|
.. | ||
aarch64 | ||
arm | ||
i386 | ||
microblaze | ||
mips | ||
or1k | ||
powerpc | ||
sh | ||
x32 | ||
x86_64 |