forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/arch/openrisc/kernel/vmlinux.lds.S
....@@ -1,3 +1,4 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * OpenRISC vmlinux.lds.S
34 *
....@@ -8,11 +9,6 @@
89 * Modifications for the OpenRISC architecture:
910 * Copyright (C) 2003 Matjaz Breskvar <phoenix@bsemi.com>
1011 * Copyright (C) 2010-2011 Jonas Bonn <jonas@southpole.se>
11
- *
12
- * This program is free software; you can redistribute it and/or
13
- * modify it under the terms of the GNU General Public License
14
- * as published by the Free Software Foundation; either version
15
- * 2 of the License, or (at your option) any later version.
1612 *
1713 * ld script for OpenRISC architecture
1814 */
....@@ -71,19 +67,18 @@
7167
7268 _sdata = .;
7369
74
- /* Page alignment required for RO_DATA_SECTION */
75
- RO_DATA_SECTION(PAGE_SIZE)
70
+ /* Page alignment required for RO_DATA */
71
+ RO_DATA(PAGE_SIZE)
7672 _e_kernel_ro = .;
7773
7874 /* Whatever comes after _e_kernel_ro had better be page-aligend, too */
7975
8076 /* 32 here is cacheline size... recheck this */
81
- RW_DATA_SECTION(32, PAGE_SIZE, PAGE_SIZE)
77
+ RW_DATA(32, PAGE_SIZE, PAGE_SIZE)
8278
8379 _edata = .;
8480
8581 EXCEPTION_TABLE(4)
86
- NOTES
8782
8883 /* Init code and data */
8984 . = ALIGN(PAGE_SIZE);
....@@ -101,18 +96,6 @@
10196
10297 __init_end = .;
10398
104
- . = ALIGN(PAGE_SIZE);
105
- .initrd : AT(ADDR(.initrd) - LOAD_OFFSET)
106
- {
107
- __initrd_start = .;
108
- *(.initrd)
109
- __initrd_end = .;
110
- FILL (0);
111
- . = ALIGN (PAGE_SIZE);
112
- }
113
-
114
- __vmlinux_end = .; /* last address of the physical file */
115
-
11699 BSS_SECTION(0, 0, 0x20)
117100
118101 _end = .;
....@@ -120,6 +103,7 @@
120103 /* Throw in the debugging sections */
121104 STABS_DEBUG
122105 DWARF_DEBUG
106
+ ELF_DETAILS
123107
124108 /* Sections to be discarded -- must be last */
125109 DISCARDS