diff options
Diffstat (limited to 'include/asm-generic/vmlinux.lds.h')
-rw-r--r-- | include/asm-generic/vmlinux.lds.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h index 094d4917c1a9..35de20cf8fac 100644 --- a/include/asm-generic/vmlinux.lds.h +++ b/include/asm-generic/vmlinux.lds.h | |||
@@ -10,6 +10,8 @@ | |||
10 | #define ALIGN_FUNCTION() . = ALIGN(8) | 10 | #define ALIGN_FUNCTION() . = ALIGN(8) |
11 | 11 | ||
12 | #define RODATA \ | 12 | #define RODATA \ |
13 | . = ALIGN(4096); \ | ||
14 | __start_rodata = .; \ | ||
13 | .rodata : AT(ADDR(.rodata) - LOAD_OFFSET) { \ | 15 | .rodata : AT(ADDR(.rodata) - LOAD_OFFSET) { \ |
14 | *(.rodata) *(.rodata.*) \ | 16 | *(.rodata) *(.rodata.*) \ |
15 | *(__vermagic) /* Kernel version magic */ \ | 17 | *(__vermagic) /* Kernel version magic */ \ |
@@ -74,6 +76,8 @@ | |||
74 | __ksymtab_strings : AT(ADDR(__ksymtab_strings) - LOAD_OFFSET) { \ | 76 | __ksymtab_strings : AT(ADDR(__ksymtab_strings) - LOAD_OFFSET) { \ |
75 | *(__ksymtab_strings) \ | 77 | *(__ksymtab_strings) \ |
76 | } \ | 78 | } \ |
79 | __end_rodata = .; \ | ||
80 | . = ALIGN(4096); \ | ||
77 | \ | 81 | \ |
78 | /* Built-in module parameters. */ \ | 82 | /* Built-in module parameters. */ \ |
79 | __param : AT(ADDR(__param) - LOAD_OFFSET) { \ | 83 | __param : AT(ADDR(__param) - LOAD_OFFSET) { \ |