]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - include/asm-generic/vmlinux.lds.h
Merge tag 'dmaengine-5.3-rc1' of git://git.infradead.org/users/vkoul/slave-dma
[linux.git] / include / asm-generic / vmlinux.lds.h
index 088987e9a3eaa3417ce2f4ca104caab2b5496c77..ca42182992a524ad3b7f28cb7281a852956c6f96 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