hc
2024-05-11 297b60346df8beafee954a0fd7c2d64f33f3b9bc
kernel/arch/alpha/kernel/vmlinux.lds.S
....@@ -1,4 +1,8 @@
11 /* SPDX-License-Identifier: GPL-2.0 */
2
+
3
+#define EMITS_PT_NOTE
4
+#define RO_EXCEPTION_TABLE_ALIGN 16
5
+
26 #include <asm-generic/vmlinux.lds.h>
37 #include <asm/thread_info.h>
48 #include <asm/cache.h>
....@@ -8,7 +12,7 @@
812 OUTPUT_FORMAT("elf64-alpha")
913 OUTPUT_ARCH(alpha)
1014 ENTRY(__start)
11
-PHDRS { kernel PT_LOAD; note PT_NOTE; }
15
+PHDRS { text PT_LOAD; note PT_NOTE; }
1216 jiffies = jiffies_64;
1317 SECTIONS
1418 {
....@@ -27,17 +31,11 @@
2731 LOCK_TEXT
2832 *(.fixup)
2933 *(.gnu.warning)
30
- } :kernel
34
+ } :text
3135 swapper_pg_dir = SWAPPER_PGD;
3236 _etext = .; /* End of text section */
3337
34
- NOTES :kernel :note
35
- .dummy : {
36
- *(.dummy)
37
- } :kernel
38
-
39
- RODATA
40
- EXCEPTION_TABLE(16)
38
+ RO_DATA(4096)
4139
4240 /* Will be freed after init */
4341 __init_begin = ALIGN(PAGE_SIZE);
....@@ -52,7 +50,7 @@
5250
5351 _sdata = .; /* Start of rw data section */
5452 _data = .;
55
- RW_DATA_SECTION(L1_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE)
53
+ RW_DATA(L1_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE)
5654
5755 .got : {
5856 *(.got)
....@@ -74,6 +72,7 @@
7472
7573 STABS_DEBUG
7674 DWARF_DEBUG
75
+ ELF_DETAILS
7776
7877 DISCARDS
7978 }