i'm wondering if there is a glibc function that i can use from gcc/g++ that will retrieve the current executable.

The purpose of this is to provide the -e argument to addr2line as shown in this answer

Edit
Report