GNU Linux-libre 4.14.332-gnu1
[releases.git] / arch / cris / boot / rescue / rescue_v32.lds
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*#OUTPUT_FORMAT(elf32-us-cris) */
3 OUTPUT_ARCH (crisv32)
4 /* Now that NAND support has been stripped, this file could be simplified,
5  * but it doesn't do any harm on the other hand so why bother. */
6
7 MEMORY
8         {
9         bootblk : ORIGIN = 0x38000000,
10                   LENGTH = 0x00004000
11         intmem  : ORIGIN = 0x38004000,
12                   LENGTH = 0x00005000
13         }
14
15 SECTIONS
16 {
17         .text :
18         {
19                 _stext = . ;
20                 *(.text)
21                 *(.init.text)
22                 *(.rodata)
23                 *(.rodata.*)
24                 _etext = . ;
25         } > bootblk
26         .data :
27         {
28                 *(.data)
29                 _edata = . ;
30         } > bootblk
31         .bss :
32         {
33                 _bss = . ;
34                 *(.bss)
35                 _end = ALIGN( 0x10 ) ;
36         } > intmem
37
38         /* Get rid of stuff from EXPORT_SYMBOL(foo). */
39         /DISCARD/ :
40         {
41                 *(__ksymtab_strings)
42                 *(__ksymtab)
43         }
44 }