Skip to content

Commit 549aa96

Browse files
nathanchanceakpm00
authored andcommitted
hexagon: vmlinux.lds.S: handle attributes section
After the linked LLVM change, the build fails with CONFIG_LD_ORPHAN_WARN_LEVEL="error", which happens with allmodconfig: ld.lld: error: vmlinux.a(init/main.o):(.hexagon.attributes) is being placed in '.hexagon.attributes' Handle the attributes section in a similar manner as arm and riscv by adding it after the primary ELF_DETAILS grouping in vmlinux.lds.S, which fixes the error. Link: https://lkml.kernel.org/r/20240319-hexagon-handle-attributes-section-vmlinux-lds-s-v1-1-59855dab8872@kernel.org Fixes: 113616e ("hexagon: select ARCH_WANT_LD_ORPHAN_WARN") Link: llvm/llvm-project@31f4b32 Signed-off-by: Nathan Chancellor <[email protected]> Reviewed-by: Brian Cain <[email protected]> Cc: Bill Wendling <[email protected]> Cc: Justin Stitt <[email protected]> Cc: Nick Desaulniers <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 30af24f commit 549aa96

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/hexagon/kernel/vmlinux.lds.S

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ SECTIONS
6363
STABS_DEBUG
6464
DWARF_DEBUG
6565
ELF_DETAILS
66+
.hexagon.attributes 0 : { *(.hexagon.attributes) }
6667

6768
DISCARDS
6869
}

0 commit comments

Comments
 (0)