1
- From git@z Thu Jan 1 00:00:00 1970
2
- Subject: [PATCH v2] arm64: Handle .ARM.attributes section in linker scripts
1
+ From ca0f4fe7cf7183bfbdc67ca2de56ae1fc3a8db2b Mon Sep 17 00:00:00 2001
3
2
From: Nathan Chancellor <
[email protected] >
4
- Date: Tue, 04 Feb 2025 10:48:55 -0700
5
- Message-Id: <20250204-arm64-handle-arm-attributes-in-linker-script-v2-1-d684097f5554@kernel.org>
6
- MIME-Version: 1.0
7
- Content-Type: text/plain; charset="utf-8"
8
- Content-Transfer-Encoding: 7bit
3
+ Date: Thu, 6 Feb 2025 10:21:38 -0700
4
+ Subject: arm64: Handle .ARM.attributes section in linker scripts
9
5
10
6
A recent LLVM commit [1] started generating an .ARM.attributes section
11
7
similar to the one that exists for 32-bit, which results in orphan
@@ -26,32 +22,30 @@ the .note.gnu.property section.
26
22
27
23
Fixes: b3e5d80d0c48 ("arm64/build: Warn on orphan section placement")
28
24
Link: https://github.com/llvm/llvm-project/commit/ee99c4d4845db66c4daa2373352133f4b237c942 [1]
29
- Link: https://lore.kernel.org/r/20250204-arm64-handle-arm-attributes-in-linker-script-v2-1-d684097f5554@kernel.org
30
25
Signed-off-by: Nathan Chancellor <
[email protected] >
26
+ Link: https://lore.kernel.org/r/20250206-arm64-handle-arm-attributes-in-linker-script-v3-1-d53d169913eb@kernel.org
27
+ Signed-off-by: Will Deacon <
[email protected] >
31
28
---
32
- Changes in v2:
33
- - Discard the section instead of adding it to the final artifacts to
34
- mirror the .note.gnu.property section handling (Will).
35
- - Link to v1: https://lore.kernel.org/r/20250124-arm64-handle-arm-attributes-in-linker-script-v1-1-74135b6cf349@kernel.org
29
+ Link: https://git.kernel.org/arm64/c/ca0f4fe7cf7183bfbdc67ca2de56ae1fc3a8db2b
36
30
---
37
31
arch/arm64/kernel/vdso/vdso.lds.S | 1 +
38
32
arch/arm64/kernel/vmlinux.lds.S | 1 +
39
33
2 files changed, 2 insertions(+)
40
34
41
35
diff --git a/arch/arm64/kernel/vdso/vdso.lds.S b/arch/arm64/kernel/vdso/vdso.lds.S
42
- index 4ec32e86a8da..8095fef66209 100644
36
+ index 4ec32e86a8da22..47ad6944f9f088 100644
43
37
--- a/arch/arm64/kernel/vdso/vdso.lds.S
44
38
+++ b/arch/arm64/kernel/vdso/vdso.lds.S
45
- @@ -80 ,6 +80 ,7 @@ SECTIONS
46
- *(.data .data.* .gnu.linkonce.d.* .sdata*)
47
- *(.bss .sbss .dynbss .dynsbss)
48
- *(.eh_frame .eh_frame_hdr )
39
+ @@ -41 ,6 +41 ,7 @@ SECTIONS
40
+ */
41
+ /DISCARD/ : {
42
+ *(.note.GNU-stack .note.gnu.property )
49
43
+ *(.ARM.attributes)
50
44
}
51
- }
45
+ .note : { *(.note.*) } :text :note
52
46
53
47
diff --git a/arch/arm64/kernel/vmlinux.lds.S b/arch/arm64/kernel/vmlinux.lds.S
54
- index f84c71f04d9e..e73326bd3ff7 100644
48
+ index f84c71f04d9ea9..e73326bd3ff7e9 100644
55
49
--- a/arch/arm64/kernel/vmlinux.lds.S
56
50
+++ b/arch/arm64/kernel/vmlinux.lds.S
57
51
@@ -162,6 +162,7 @@ SECTIONS
@@ -62,12 +56,6 @@ index f84c71f04d9e..e73326bd3ff7 100644
62
56
}
63
57
64
58
. = KIMAGE_VADDR;
65
-
66
- ---
67
- base-commit: 1dd3393696efba1598aa7692939bba99d0cffae3
68
- change-id: 20250123-arm64-handle-arm-attributes-in-linker-script-82aee25313ac
69
-
70
- Best regards,
71
59
- -
72
- Nathan Chancellor <[email protected] >
60
+ cgit 1.2.3-korg
73
61
0 commit comments