linux-stable/arch/hexagon/kernel
Nathan Chancellor a079f727e1 hexagon: vmlinux.lds.S: handle attributes section
commit 549aa9678a upstream.

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: 113616ec5b ("hexagon: select ARCH_WANT_LD_ORPHAN_WARN")
Link: 31f4b329c8
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Reviewed-by: Brian Cain <bcain@quicinc.com>
Cc: Bill Wendling <morbo@google.com>
Cc: Justin Stitt <justinstitt@google.com>
Cc: Nick Desaulniers <ndesaulniers@google.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-04-03 15:32:39 +02:00
..
.gitignore hexagon: ignore vmlinux.lds 2021-11-20 10:35:54 -08:00
asm-offsets.c
dma.c
head.S
hexagon_ksyms.c hexagon: mm: convert to GENERIC_IOREMAP 2023-08-18 10:12:32 -07:00
irq_cpu.c
kgdb.c
Makefile vgacon, arch/*: remove unused screen_info definitions 2023-10-17 10:17:02 +02:00
module.c
process.c hexagon: process: add internal prototype for do_work_pending() 2023-12-10 17:21:36 -08:00
ptrace.c hexagon: Remove CONFIG_HEXAGON_ARCH_VERSION from uapi header 2023-11-23 10:38:58 +01:00
reset.c hexagon: reset: include linux/reboot.h for prototypes 2023-12-10 17:21:36 -08:00
setup.c Hexagon: Replace all non-returning strlcpy with strscpy 2023-06-14 11:18:05 -07:00
signal.c hexagon: signal: switch to SYSCALL_DEFINE0 for sys_rt_sigreturn() 2023-12-10 17:21:35 -08:00
smp.c hexagon: smp: mark handle_ipi() and start_secondary() as static 2023-12-10 17:21:34 -08:00
stacktrace.c
syscalltab.c
time.c hexagon: time: include asm/delay.h for prototypes 2023-12-10 17:21:35 -08:00
trampoline.S
traps.c hexagon: traps: add internal prototypes for functions only called from asm 2023-12-10 17:21:37 -08:00
vdso.c hexagon: vdso: include asm/elf.h for arch_setup_additional_pages() prototype 2023-12-10 17:21:36 -08:00
vm_entry.S
vm_events.c hexagon: vm_events: remove unused dummy_handler() 2023-12-10 17:21:37 -08:00
vm_init_segtable.S
vm_ops.S
vm_switch.S
vm_vectors.S
vmlinux.lds.S hexagon: vmlinux.lds.S: handle attributes section 2024-04-03 15:32:39 +02:00