This is needed now to avoid referencing abort in ld.so.
TODO: Fixing shared library profiling for capabilities requires
type fixes so capabilities are not stored into shared memory
(maybe purecap layout can match the lp64 one and then no file format
and external tooling change is required.)
TODO: Proper fix also depends on _dl_runtime_profile plt entry
void
_dl_start_profile (void)
{
+#ifdef __CHERI_PURE_CAPABILITY__
+ __libc_fatal ("Profiling is not supported on capability architectures.");
+#else
char *filename;
int fd;
struct __stat64_t64 st;
/* Turn on profiling. */
running = 1;
+#endif
}