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