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
32From: 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
95
106A recent LLVM commit [1] started generating an .ARM.attributes section
117similar to the one that exists for 32-bit, which results in orphan
@@ -26,32 +22,30 @@ the .note.gnu.property section.
26222723Fixes: b3e5d80d0c48 ("arm64/build: Warn on orphan section placement")
2824Link: 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
3025Signed-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] >
3128---
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
3630---
3731 arch/arm64/kernel/vdso/vdso.lds.S | 1 +
3832 arch/arm64/kernel/vmlinux.lds.S | 1 +
3933 2 files changed, 2 insertions(+)
4034
4135diff --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
4337--- a/arch/arm64/kernel/vdso/vdso.lds.S
4438+++ 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 )
4943+ *(.ARM.attributes)
5044 }
51- }
45+ .note : { *(.note.*) } :text :note
5246
5347diff --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
5549--- a/arch/arm64/kernel/vmlinux.lds.S
5650+++ b/arch/arm64/kernel/vmlinux.lds.S
5751@@ -162,6 +162,7 @@ SECTIONS
@@ -62,12 +56,6 @@ index f84c71f04d9e..e73326bd3ff7 100644
6256 }
6357
6458 . = KIMAGE_VADDR;
65-
66- ---
67- base-commit: 1dd3393696efba1598aa7692939bba99d0cffae3
68- change-id: 20250123-arm64-handle-arm-attributes-in-linker-script-82aee25313ac
69-
70- Best regards,
7159- -
72- Nathan Chancellor <[email protected] > 60+ cgit 1.2.3-korg
7361
0 commit comments