Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux
[sfrench/cifs-2.6.git] / include / asm-generic / vmlinux.lds.h
index 5a06822fcd6c6f9cb56d60105fd9963117ec7f95..cd28f63bfbc76f5180c62f92350dd0f4ea11ea35 100644 (file)
 #endif
 
 #ifdef CONFIG_FTRACE_MCOUNT_RECORD
+#ifdef CC_USING_PATCHABLE_FUNCTION_ENTRY
+#define MCOUNT_REC()   . = ALIGN(8);                           \
+                       __start_mcount_loc = .;                 \
+                       KEEP(*(__patchable_function_entries))   \
+                       __stop_mcount_loc = .;
+#else
 #define MCOUNT_REC()   . = ALIGN(8);                           \
                        __start_mcount_loc = .;                 \
                        KEEP(*(__mcount_loc))                   \
                        __stop_mcount_loc = .;
+#endif
 #else
 #define MCOUNT_REC()
 #endif