2 * ld script for the c6x kernel
4 * Copyright (C) 2010, 2011 Texas Instruments Incorporated
5 * Mark Salter <msalter@redhat.com>
7 #include <asm-generic/vmlinux.lds.h>
8 #include <asm/thread_info.h>
13 #if defined(CONFIG_CPU_BIG_ENDIAN)
14 jiffies = jiffies_64 + 4;
19 #define READONLY_SEGMENT_START \
21 #define READWRITE_SEGMENT_START \
28 * Start kernel read only segment
30 READONLY_SEGMENT_START
41 * This section contains data which may be shared with other
42 * cores. It needs to be a fixed offset from PAGE_OFFSET
43 * regardless of kernel configuration.
84 RO_DATA_SECTION(PAGE_SIZE)
87 *(.const .const.* .gnu.linkonce.r.*)
92 __fdt_blob : AT(ADDR(__fdt_blob) - LOAD_OFFSET)
94 _fdt_start = . ; /* place for fdt blob */
95 *(__fdt_blob) ; /* Any link-placed DTB */
96 BYTE(0); /* section always has contents */
97 . = _fdt_start + 0x4000; /* Pad up to 16kbyte */
104 * Start kernel read-write segment.
106 READWRITE_SEGMENT_START
109 .fardata : AT(ADDR(.fardata) - LOAD_OFFSET)
111 INIT_TASK_DATA(THREAD_SIZE)
113 PAGE_ALIGNED_DATA(PAGE_SIZE)
114 CACHELINE_ALIGNED_DATA(128)
115 READ_MOSTLY_DATA(128)
119 *(.fardata .fardata.*)
123 .neardata ALIGN(8) : AT(ADDR(.neardata) - LOAD_OFFSET)
125 *(.neardata2 .neardata2.* .gnu.linkonce.s2.*)
126 *(.neardata .neardata.* .gnu.linkonce.s.*)
139 *(.far .far.* .gnu.linkonce.b.*)