From ffb65c411bb5ae3326f5d855a7e2573176bfdb5a Mon Sep 17 00:00:00 2001 From: "Anthony G. Basile" Date: Sat, 8 Jun 2013 21:15:44 -0400 Subject: [PATCH 6/6] Remove DL_CALL_FCT wrapper which is used in profiling DL_CALL_FCT is defined in on glibc systems and is a macro for calling functions in shared objects with dlsym. This is useful for profiling since these functions would otherwise not use the PLT and so not be counted when profiling with gprof. Signed-off-by: Anthony G. Basile --- src/ld.h | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src/ld.h b/src/ld.h index 29f4031..e64649c 100644 --- a/src/ld.h +++ b/src/ld.h @@ -24,6 +24,9 @@ #include #include "xelf.h" +#ifndef DL_CALL_FCT +#define DL_CALL_FCT(f, a) f a +#endif /* Recommended size of the buffer passed to ld_strerror. */ #define ERRBUFSIZE (512) -- 1.7.8.6