2 * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
9 #include <asm-generic/vmlinux.lds.h>
10 #include <asm/cache.h>
12 #include <asm/thread_info.h>
13 #include <plat/memmap.h>
18 #ifdef CONFIG_CPU_BIG_ENDIAN
19 jiffies = jiffies_64 + 4;
26 . = CONFIG_LINUX_LINK_BASE;
28 _int_vec_base_lds = .;
35 * The reason for having a seperate subsection .init.ramfs is to
36 * prevent objump from including it in kernel dumps
38 * Reason for having .init.ramfs above .init is to make sure that the
39 * binary blob is tucked away to one side, reducing the displacement
40 * between .init.text and .text, avoiding any possible relocation
41 * errors because of calls from .init.text to .text
42 * Yes such calls do exist. e.g.
43 * decompress_inflate.c:gunzip( ) -> zlib_inflate_workspace( )
48 .init.ramfs : { INIT_RAM_FS }
54 INIT_TEXT_SECTION(L1_CACHE_BYTES)
56 /* INIT_DATA_SECTION open-coded: special INIT_RAM_FS handling */
59 INIT_SETUP(L1_CACHE_BYTES)
65 PERCPU_SECTION(L1_CACHE_BYTES)
68 * .exit.text is discard at runtime, not link time, to deal with
69 * references from .debug_frame
70 * It will be init freed, being inside [__init_start : __init_end]
72 .exit.text : { EXIT_TEXT }
73 .exit.data : { EXIT_DATA }
87 EXCEPTION_TABLE(L1_CACHE_BYTES)
91 RO_DATA_SECTION(PAGE_SIZE)
94 * 1. this is .data essentially
95 * 2. THREAD_SIZE for init.task, must be kernel-stk sz aligned
97 RW_DATA_SECTION(L1_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE)
103 #ifdef CONFIG_ARC_DW2_UNWIND
104 . = ALIGN(PAGE_SIZE);
111 /DISCARD/ : { *(.debug_frame) }
116 . = ALIGN(PAGE_SIZE);
123 *(.gnu.linkonce.arcextmap.*)
127 /* open-coded because we need .debug_frame seperately for unwinding */
128 .debug_aranges 0 : { *(.debug_aranges) }
129 .debug_pubnames 0 : { *(.debug_pubnames) }
130 .debug_info 0 : { *(.debug_info) }
131 .debug_abbrev 0 : { *(.debug_abbrev) }
132 .debug_line 0 : { *(.debug_line) }
133 .debug_str 0 : { *(.debug_str) }
134 .debug_loc 0 : { *(.debug_loc) }
135 .debug_macinfo 0 : { *(.debug_macinfo) }