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.
83 RO_DATA_SECTION(PAGE_SIZE)
86 *(.const .const.* .gnu.linkonce.r.*)
91 __fdt_blob : AT(ADDR(__fdt_blob) - LOAD_OFFSET)
93 _fdt_start = . ; /* place for fdt blob */
94 *(__fdt_blob) ; /* Any link-placed DTB */
95 BYTE(0); /* section always has contents */
96 . = _fdt_start + 0x4000; /* Pad up to 16kbyte */
103 * Start kernel read-write segment.
105 READWRITE_SEGMENT_START
108 .fardata : AT(ADDR(.fardata) - LOAD_OFFSET)
110 INIT_TASK_DATA(THREAD_SIZE)
112 PAGE_ALIGNED_DATA(PAGE_SIZE)
113 CACHELINE_ALIGNED_DATA(128)
114 READ_MOSTLY_DATA(128)
118 *(.fardata .fardata.*)
122 .neardata ALIGN(8) : AT(ADDR(.neardata) - LOAD_OFFSET)
124 *(.neardata2 .neardata2.* .gnu.linkonce.s2.*)
125 *(.neardata .neardata.* .gnu.linkonce.s.*)
138 *(.far .far.* .gnu.linkonce.b.*)