aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-generic
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-generic')
-rw-r--r--include/asm-generic/vmlinux.lds.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h
index a43223af98b6..29ca8f53ffbe 100644
--- a/include/asm-generic/vmlinux.lds.h
+++ b/include/asm-generic/vmlinux.lds.h
@@ -88,7 +88,8 @@
88#endif 88#endif
89 89
90#ifdef CONFIG_FTRACE_MCOUNT_RECORD 90#ifdef CONFIG_FTRACE_MCOUNT_RECORD
91#define MCOUNT_REC() VMLINUX_SYMBOL(__start_mcount_loc) = .; \ 91#define MCOUNT_REC() . = ALIGN(8); \
92 VMLINUX_SYMBOL(__start_mcount_loc) = .; \
92 *(__mcount_loc) \ 93 *(__mcount_loc) \
93 VMLINUX_SYMBOL(__stop_mcount_loc) = .; 94 VMLINUX_SYMBOL(__stop_mcount_loc) = .;
94#else 95#else
@@ -328,7 +329,6 @@
328 /* __*init sections */ \ 329 /* __*init sections */ \
329 __init_rodata : AT(ADDR(__init_rodata) - LOAD_OFFSET) { \ 330 __init_rodata : AT(ADDR(__init_rodata) - LOAD_OFFSET) { \
330 *(.ref.rodata) \ 331 *(.ref.rodata) \
331 MCOUNT_REC() \
332 DEV_KEEP(init.rodata) \ 332 DEV_KEEP(init.rodata) \
333 DEV_KEEP(exit.rodata) \ 333 DEV_KEEP(exit.rodata) \
334 CPU_KEEP(init.rodata) \ 334 CPU_KEEP(init.rodata) \
@@ -452,6 +452,7 @@
452 MEM_DISCARD(init.data) \ 452 MEM_DISCARD(init.data) \
453 KERNEL_CTORS() \ 453 KERNEL_CTORS() \
454 *(.init.rodata) \ 454 *(.init.rodata) \
455 MCOUNT_REC() \
455 DEV_DISCARD(init.rodata) \ 456 DEV_DISCARD(init.rodata) \
456 CPU_DISCARD(init.rodata) \ 457 CPU_DISCARD(init.rodata) \
457 MEM_DISCARD(init.rodata) 458 MEM_DISCARD(init.rodata)