ref: 6bb619c8db2867ddd9cd19c0aec05065f5ee0cae dir: /lib9/getcallerpc-Linux-amd64.c/
#include <lib9.h> uintptr getcallerpc(void *x) { //uintptr *lp; // lp = x; // return lp[-1]; return (uintptr) __builtin_return_address(0); }