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.
85 RO_DATA_SECTION(PAGE_SIZE)
88 *(.const .const.* .gnu.linkonce.r.*)
93 __fdt_blob : AT(ADDR(__fdt_blob) - LOAD_OFFSET)
95 _fdt_start = . ; /* place for fdt blob */
96 *(__fdt_blob) ; /* Any link-placed DTB */
97 BYTE(0); /* section always has contents */
98 . = _fdt_start + 0x4000; /* Pad up to 16kbyte */
105 * Start kernel read-write segment.
107 READWRITE_SEGMENT_START
110 .fardata : AT(ADDR(.fardata) - LOAD_OFFSET)
112 INIT_TASK_DATA(THREAD_SIZE)
114 PAGE_ALIGNED_DATA(PAGE_SIZE)
115 CACHELINE_ALIGNED_DATA(128)
116 READ_MOSTLY_DATA(128)
120 *(.fardata .fardata.*)
124 .neardata ALIGN(8) : AT(ADDR(.neardata) - LOAD_OFFSET)
126 *(.neardata2 .neardata2.* .gnu.linkonce.s2.*)
127 *(.neardata .neardata.* .gnu.linkonce.s.*)
142 *(.far .far.* .gnu.linkonce.b.*)