aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-generic/vmlinux.lds.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-generic/vmlinux.lds.h')
-rw-r--r--include/asm-generic/vmlinux.lds.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h
index bd69d79208de..68649336c4ad 100644
--- a/include/asm-generic/vmlinux.lds.h
+++ b/include/asm-generic/vmlinux.lds.h
@@ -67,7 +67,8 @@
67 * Align to a 32 byte boundary equal to the 67 * Align to a 32 byte boundary equal to the
68 * alignment gcc 4.5 uses for a struct 68 * alignment gcc 4.5 uses for a struct
69 */ 69 */
70#define STRUCT_ALIGN() . = ALIGN(32) 70#define STRUCT_ALIGNMENT 32
71#define STRUCT_ALIGN() . = ALIGN(STRUCT_ALIGNMENT)
71 72
72/* The actual configuration determine if the init/exit sections 73/* The actual configuration determine if the init/exit sections
73 * are handled as text/data or they can be discarded (which 74 * are handled as text/data or they can be discarded (which
@@ -146,6 +147,13 @@
146#define TRACE_SYSCALLS() 147#define TRACE_SYSCALLS()
147#endif 148#endif
148 149
150
151#define KERNEL_DTB() \
152 STRUCT_ALIGN(); \
153 VMLINUX_SYMBOL(__dtb_start) = .; \
154 *(.dtb.init.rodata) \
155 VMLINUX_SYMBOL(__dtb_end) = .;
156
149/* .data section */ 157/* .data section */
150#define DATA_DATA \ 158#define DATA_DATA \
151 *(.data) \ 159 *(.data) \
@@ -192,7 +200,8 @@
192 200
193#define READ_MOSTLY_DATA(align) \ 201#define READ_MOSTLY_DATA(align) \
194 . = ALIGN(align); \ 202 . = ALIGN(align); \
195 *(.data..read_mostly) 203 *(.data..read_mostly) \
204 . = ALIGN(align);
196 205
197#define CACHELINE_ALIGNED_DATA(align) \ 206#define CACHELINE_ALIGNED_DATA(align) \
198 . = ALIGN(align); \ 207 . = ALIGN(align); \
@@ -468,7 +477,8 @@
468 MCOUNT_REC() \ 477 MCOUNT_REC() \
469 DEV_DISCARD(init.rodata) \ 478 DEV_DISCARD(init.rodata) \
470 CPU_DISCARD(init.rodata) \ 479 CPU_DISCARD(init.rodata) \
471 MEM_DISCARD(init.rodata) 480 MEM_DISCARD(init.rodata) \
481 KERNEL_DTB()
472 482
473#define INIT_TEXT \ 483#define INIT_TEXT \
474 *(.init.text) \ 484 *(.init.text) \