1 /* SPDX-License-Identifier: GPL-2.0 */
3 * ld script for the c6x kernel
5 * Copyright (C) 2010, 2011 Texas Instruments Incorporated
6 * Mark Salter <msalter@redhat.com>
8 #include <asm-generic/vmlinux.lds.h>
9 #include <asm/thread_info.h>
14 #if defined(CONFIG_CPU_BIG_ENDIAN)
15 jiffies = jiffies_64 + 4;
20 #define READONLY_SEGMENT_START \
22 #define READWRITE_SEGMENT_START \
29 * Start kernel read only segment
31 READONLY_SEGMENT_START
42 * This section contains data which may be shared with other
43 * cores. It needs to be a fixed offset from PAGE_OFFSET
44 * regardless of kernel configuration.
86 RO_DATA_SECTION(PAGE_SIZE)
89 *(.const .const.* .gnu.linkonce.r.*)
96 * Start kernel read-write segment.
98 READWRITE_SEGMENT_START
101 .fardata : AT(ADDR(.fardata) - LOAD_OFFSET)
103 INIT_TASK_DATA(THREAD_SIZE)
105 PAGE_ALIGNED_DATA(PAGE_SIZE)
106 CACHELINE_ALIGNED_DATA(128)
107 READ_MOSTLY_DATA(128)
111 *(.fardata .fardata.*)
115 .neardata ALIGN(8) : AT(ADDR(.neardata) - LOAD_OFFSET)
117 *(.neardata2 .neardata2.* .gnu.linkonce.s2.*)
118 *(.neardata .neardata.* .gnu.linkonce.s.*)
133 *(.far .far.* .gnu.linkonce.b.*)