How can I do calling for external address in my "C" programm by inline GAS?
Ian Lance Taylor
iant@google.com
Tue Mar 27 18:42:00 GMT 2012
Dmitrij K <kdiman1982@gmail.com> writes:
> I did as you told me, but it is not working too :( (I had used %r15 instead
> %rdi for p_printf, and %rdi for str)...
Show us your code.
> I have not ideas how I can to call func by the address.
> I can't find examples of calling functions with args by address (as needs me).
> I had seen examples without args only (abi, internet)...
You can call a function by address in C.
Why do you want to do it in assembler code?
Ian
More information about the Binutils
mailing list