forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-09-20 a36159eec6ca17402b0e146b86efaf76568dc353
kernel/arch/ia64/kernel/vmlinux.lds.S
....@@ -1,9 +1,12 @@
11 /* SPDX-License-Identifier: GPL-2.0 */
22
3
+#include <linux/pgtable.h>
34 #include <asm/cache.h>
45 #include <asm/ptrace.h>
5
-#include <asm/pgtable.h>
66 #include <asm/thread_info.h>
7
+
8
+#define EMITS_PT_NOTE
9
+#define RO_EXCEPTION_TABLE_ALIGN 16
710
811 #include <asm-generic/vmlinux.lds.h>
912
....@@ -13,7 +16,7 @@
1316 jiffies = jiffies_64;
1417
1518 PHDRS {
16
- code PT_LOAD;
19
+ text PT_LOAD;
1720 percpu PT_LOAD;
1821 data PT_LOAD;
1922 note PT_NOTE;
....@@ -36,7 +39,7 @@
3639 phys_start = _start - LOAD_OFFSET;
3740
3841 code : {
39
- } :code
42
+ } :text
4043 . = KERNEL_START;
4144
4245 _text = .;
....@@ -51,6 +54,8 @@
5154 CPUIDLE_TEXT
5255 LOCK_TEXT
5356 KPROBES_TEXT
57
+ IRQENTRY_TEXT
58
+ SOFTIRQENTRY_TEXT
5459 *(.gnu.linkonce.t*)
5560 }
5661
....@@ -68,11 +73,6 @@
6873 /*
6974 * Read-only data
7075 */
71
- NOTES :code :note /* put .notes in text and mark in PT_NOTE */
72
- code_continues : {
73
- } : code /* switch back to regular program... */
74
-
75
- EXCEPTION_TABLE(16)
7676
7777 /* MCA table */
7878 . = ALIGN(16);
....@@ -102,11 +102,11 @@
102102 __start_unwind = .;
103103 *(.IA_64.unwind*)
104104 __end_unwind = .;
105
- } :code :unwind
105
+ } :text :unwind
106106 code_continues2 : {
107
- } : code
107
+ } :text
108108
109
- RODATA
109
+ RO_DATA(4096)
110110
111111 .opd : AT(ADDR(.opd) - LOAD_OFFSET) {
112112 __start_opd = .;
....@@ -140,16 +140,6 @@
140140 *(.data..patch.mckinley_e9)
141141 __end___mckinley_e9_bundles = .;
142142 }
143
-
144
-#if defined(CONFIG_IA64_GENERIC)
145
- /* Machine Vector */
146
- . = ALIGN(16);
147
- .machvec : AT(ADDR(.machvec) - LOAD_OFFSET) {
148
- machvec_start = .;
149
- *(.machvec)
150
- machvec_end = .;
151
- }
152
-#endif
153143
154144 #ifdef CONFIG_SMP
155145 . = ALIGN(PERCPU_PAGE_SIZE);
....@@ -224,10 +214,11 @@
224214 _end = .;
225215
226216 code : {
227
- } :code
217
+ } :text
228218
229219 STABS_DEBUG
230220 DWARF_DEBUG
221
+ ELF_DETAILS
231222
232223 /* Default discards */
233224 DISCARDS