]> git.ipfire.org Git - thirdparty/kernel/stable.git/blame - arch/unicore32/boot/compressed/vmlinux.lds.S
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500
[thirdparty/kernel/stable.git] / arch / unicore32 / boot / compressed / vmlinux.lds.S
CommitLineData
d2912cb1 1/* SPDX-License-Identifier: GPL-2.0-only */
70fac51f
G
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
70fac51f
G
8 */
9OUTPUT_ARCH(unicore32)
10ENTRY(_start)
11SECTIONS
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