treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500
[linux-block.git] / arch / unicore32 / boot / compressed / vmlinux.lds.S
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * linux/arch/unicore/boot/compressed/vmlinux.lds.in
4  *
5  * Code specific to PKUnity SoC and UniCore ISA
6  *
7  * Copyright (C) 2001-2010 GUAN Xue-tao
8  */
9 OUTPUT_ARCH(unicore32)
10 ENTRY(_start)
11 SECTIONS
12 {
13   /DISCARD/ : {
14     /*
15      * Discard any r/w data - this produces a link error if we have any,
16      * which is required for PIC decompression.  Local data generates
17      * GOTOFF relocations, which prevents it being relocated independently
18      * of the text/got segments.
19      */
20     *(.data)
21   }
22
23   . = TEXT_START;
24   _text = .;
25
26   .text : {
27     _start = .;
28     *(.start)
29     *(.text)
30     *(.text.*)
31     *(.fixup)
32     *(.gnu.warning)
33     *(.rodata)
34     *(.rodata.*)
35     *(.piggydata)
36     . = ALIGN(4);
37   }
38
39   _etext = .;
40
41   /* Assume size of decompressed image is 4x the compressed image */
42   _image_size = (_etext - _text) * 4;
43
44   _got_start = .;
45   .got                  : { *(.got) }
46   _got_end = .;
47   .got.plt              : { *(.got.plt) }
48   _edata = .;
49
50   . = BSS_START;
51   __bss_start = .;
52   .bss                  : { *(.bss) }
53   _end = .;
54
55   .stack                : { *(.stack) }
56   .comment 0            : { *(.comment) }
57 }
58