1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
6 #include <asm-generic/vmlinux.lds.h>
9 #include <asm/thread_info.h>
14 #ifdef CONFIG_CPU_BIG_ENDIAN
15 jiffies = jiffies_64 + 4;
23 * ICCM starts at 0x8000_0000. So if kernel is relocated to some other
24 * address, make sure peripheral at 0x8z doesn't clash with ICCM
25 * Essentially vector is also in ICCM.
28 . = CONFIG_LINUX_LINK_BASE;
30 _int_vec_base_lds = .;
36 #ifdef CONFIG_ARC_HAS_ICCM
39 . = ALIGN(CONFIG_ARC_ICCM_SZ * 1024);
44 * The reason for having a seperate subsection .init.ramfs is to
45 * prevent objump from including it in kernel dumps
47 * Reason for having .init.ramfs above .init is to make sure that the
48 * binary blob is tucked away to one side, reducing the displacement
49 * between .init.text and .text, avoiding any possible relocation
50 * errors because of calls from .init.text to .text
51 * Yes such calls do exist. e.g.
52 * decompress_inflate.c:gunzip( ) -> zlib_inflate_workspace( )
57 .init.ramfs : { INIT_RAM_FS }
63 INIT_TEXT_SECTION(L1_CACHE_BYTES)
65 /* INIT_DATA_SECTION open-coded: special INIT_RAM_FS handling */
68 INIT_SETUP(L1_CACHE_BYTES)
74 __arch_info_begin = .;
79 PERCPU_SECTION(L1_CACHE_BYTES)
94 EXCEPTION_TABLE(L1_CACHE_BYTES)
101 * 1. this is .data essentially
102 * 2. THREAD_SIZE for init.task, must be kernel-stk sz aligned
104 RW_DATA(L1_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE)
110 #ifdef CONFIG_ARC_DW2_UNWIND
111 . = ALIGN(PAGE_SIZE);
118 /DISCARD/ : { *(.eh_frame) }
121 . = ALIGN(PAGE_SIZE);
128 *(.gnu.linkonce.arcextmap.*)
132 #ifndef CONFIG_DEBUG_INFO
133 /DISCARD/ : { *(.debug_frame) }
134 /DISCARD/ : { *(.debug_aranges) }
135 /DISCARD/ : { *(.debug_pubnames) }
136 /DISCARD/ : { *(.debug_info) }
137 /DISCARD/ : { *(.debug_abbrev) }
138 /DISCARD/ : { *(.debug_line) }
139 /DISCARD/ : { *(.debug_str) }
140 /DISCARD/ : { *(.debug_loc) }
141 /DISCARD/ : { *(.debug_macinfo) }
142 /DISCARD/ : { *(.debug_ranges) }
145 #ifdef CONFIG_ARC_HAS_DCCM
146 . = CONFIG_ARC_DCCM_BASE;
151 . = ALIGN(CONFIG_ARC_DCCM_SZ * 1024);