diff options
Diffstat (limited to 'include/asm-generic/vmlinux.lds.h')
-rw-r--r-- | include/asm-generic/vmlinux.lds.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h index 6ad76bf5fb40..98b37cf3ac6d 100644 --- a/include/asm-generic/vmlinux.lds.h +++ b/include/asm-generic/vmlinux.lds.h | |||
@@ -91,7 +91,8 @@ | |||
91 | #endif | 91 | #endif |
92 | 92 | ||
93 | #ifdef CONFIG_FTRACE_MCOUNT_RECORD | 93 | #ifdef CONFIG_FTRACE_MCOUNT_RECORD |
94 | #define MCOUNT_REC() VMLINUX_SYMBOL(__start_mcount_loc) = .; \ | 94 | #define MCOUNT_REC() . = ALIGN(8); \ |
95 | VMLINUX_SYMBOL(__start_mcount_loc) = .; \ | ||
95 | *(__mcount_loc) \ | 96 | *(__mcount_loc) \ |
96 | VMLINUX_SYMBOL(__stop_mcount_loc) = .; | 97 | VMLINUX_SYMBOL(__stop_mcount_loc) = .; |
97 | #else | 98 | #else |
@@ -331,7 +332,6 @@ | |||
331 | /* __*init sections */ \ | 332 | /* __*init sections */ \ |
332 | __init_rodata : AT(ADDR(__init_rodata) - LOAD_OFFSET) { \ | 333 | __init_rodata : AT(ADDR(__init_rodata) - LOAD_OFFSET) { \ |
333 | *(.ref.rodata) \ | 334 | *(.ref.rodata) \ |
334 | MCOUNT_REC() \ | ||
335 | DEV_KEEP(init.rodata) \ | 335 | DEV_KEEP(init.rodata) \ |
336 | DEV_KEEP(exit.rodata) \ | 336 | DEV_KEEP(exit.rodata) \ |
337 | CPU_KEEP(init.rodata) \ | 337 | CPU_KEEP(init.rodata) \ |
@@ -455,6 +455,7 @@ | |||
455 | MEM_DISCARD(init.data) \ | 455 | MEM_DISCARD(init.data) \ |
456 | KERNEL_CTORS() \ | 456 | KERNEL_CTORS() \ |
457 | *(.init.rodata) \ | 457 | *(.init.rodata) \ |
458 | MCOUNT_REC() \ | ||
458 | DEV_DISCARD(init.rodata) \ | 459 | DEV_DISCARD(init.rodata) \ |
459 | CPU_DISCARD(init.rodata) \ | 460 | CPU_DISCARD(init.rodata) \ |
460 | MEM_DISCARD(init.rodata) | 461 | MEM_DISCARD(init.rodata) |