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>
9 #define RO_EXCEPTION_TABLE_ALIGN 16
11 #include <asm-generic/vmlinux.lds.h>
12 #include <asm/thread_info.h>
17 #if defined(CONFIG_CPU_BIG_ENDIAN)
18 jiffies = jiffies_64 + 4;
23 #define READONLY_SEGMENT_START \
25 #define READWRITE_SEGMENT_START \
32 * Start kernel read only segment
34 READONLY_SEGMENT_START
45 * This section contains data which may be shared with other
46 * cores. It needs to be a fixed offset from PAGE_OFFSET
47 * regardless of kernel configuration.
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.*)