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 separate subsection .init.ramfs is to
45 * prevent objdump 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 }
62 INIT_TEXT_SECTION(L1_CACHE_BYTES)
64 /* INIT_DATA_SECTION open-coded: special INIT_RAM_FS handling */
67 INIT_SETUP(L1_CACHE_BYTES)
73 __arch_info_begin = .;
78 PERCPU_SECTION(L1_CACHE_BYTES)
95 EXCEPTION_TABLE(L1_CACHE_BYTES)
102 * 1. this is .data essentially
103 * 2. THREAD_SIZE for init.task, must be kernel-stk sz aligned
105 RW_DATA(L1_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE)
111 #ifdef CONFIG_ARC_DW2_UNWIND
112 . = ALIGN(PAGE_SIZE);
119 /DISCARD/ : { *(.eh_frame) }
122 . = ALIGN(PAGE_SIZE);
130 *(.gnu.linkonce.arcextmap.*)
134 #ifndef CONFIG_DEBUG_INFO
135 /DISCARD/ : { *(.debug_frame) }
136 /DISCARD/ : { *(.debug_aranges) }
137 /DISCARD/ : { *(.debug_pubnames) }
138 /DISCARD/ : { *(.debug_info) }
139 /DISCARD/ : { *(.debug_abbrev) }
140 /DISCARD/ : { *(.debug_line) }
141 /DISCARD/ : { *(.debug_str) }
142 /DISCARD/ : { *(.debug_loc) }
143 /DISCARD/ : { *(.debug_macinfo) }
144 /DISCARD/ : { *(.debug_ranges) }
147 #ifdef CONFIG_ARC_HAS_DCCM
148 . = CONFIG_ARC_DCCM_BASE;
153 . = ALIGN(CONFIG_ARC_DCCM_SZ * 1024);