summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/bits/dlfcn.h
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-08-21 21:19:29 +0000
committerEric Andersen <andersen@codepoet.org>2004-08-21 21:19:29 +0000
commit6e112da93a731085ff9b07f0804395bb3866925a (patch)
tree63320d9f5200bb3892ccfbcc55be84a5da535023 /libc/sysdeps/linux/common/bits/dlfcn.h
parente50f6d1c15483fc17323ecdd427f4a84c018f3af (diff)
Kill off all support for 'gcc -pg' / 'gprof' style profiling. There is both a
size and performance penalty to profiling applications this way, as well as Heisenberg effects, where the act of measuring changes what is measured. There are better tools for doing profiling, such as OProfile, that do not require gcc to instrument the application code. -Erik
Diffstat (limited to 'libc/sysdeps/linux/common/bits/dlfcn.h')
-rw-r--r--libc/sysdeps/linux/common/bits/dlfcn.h22
1 files changed, 0 insertions, 22 deletions
diff --git a/libc/sysdeps/linux/common/bits/dlfcn.h b/libc/sysdeps/linux/common/bits/dlfcn.h
index e96b5c17a..75122a98a 100644
--- a/libc/sysdeps/linux/common/bits/dlfcn.h
+++ b/libc/sysdeps/linux/common/bits/dlfcn.h
@@ -40,25 +40,3 @@
/* Do not delete object when closed. */
#define RTLD_NODELETE 0x01000
-#ifdef __USE_GNU
-/* To support profiling of shared objects it is a good idea to call
- the function found using `dlsym' using the following macro since
- these calls do not use the PLT. But this would mean the dynamic
- loader has no chance to find out when the function is called. The
- macro applies the necessary magic so that profiling is possible.
- Rewrite
- foo = (*fctp) (arg1, arg2);
- into
- foo = DL_CALL_FCT (fctp, (arg1, arg2));
-*/
-# define DL_CALL_FCT(fctp, args) \
- (_dl_mcount_wrapper_check ((void *) (fctp)), (*(fctp)) args)
-
-__BEGIN_DECLS
-
-/* This function calls the profiling functions. */
-extern void _dl_mcount_wrapper_check (void *__selfpc) __THROW;
-
-__END_DECLS
-
-#endif