Address of return address

U.Mutlu um@mutluit.com
Fri Jul 6 09:01:00 GMT 2018


Mahmood Naderan via gcc-help wrote on 07/06/2018 07:46 AM:
>
> Hi
>
> The C function __builtin_return_address(0) is able to return the "return address" and that is a hex value. How can I get the address of "return address"? I mean the memory location which holds the return address.
>
> It seems that &__builtin_return_address(0) is invalid.

Does the following help?:
https://gcc.gnu.org/onlinedocs/gcc/Return-Address.html




More information about the Gcc-help mailing list