(CALL_MCOUNT): Replace stub with real implementation.
authordrepper <drepper>
Mon, 27 Jul 1998 17:52:15 +0000 (17:52 +0000)
committerdrepper <drepper>
Mon, 27 Jul 1998 17:52:15 +0000 (17:52 +0000)
sysdeps/arm/sysdep.h

index 4fc90ae..13d34c7 100644 (file)
 
 /* If compiled for profiling, call `mcount' at the start of each function.  */
 #ifdef PROF
-/* The mcount code relies on a normal frame pointer being on the stack
-   to locate our caller, so push one just for its benefit.  */
-#define CALL_MCOUNT \
-#error Profiling not supported.
+#define CALL_MCOUNT                    \
+       str     lr,[sp, #-4]!           \
+       bl      PLTJMP(mcount)          \
+       ldr     lr, [sp], #4
 #else
 #define CALL_MCOUNT            /* Do nothing.  */
 #endif