original_kernel/arch/hexagon/kernel
Nathan Chancellor 549aa9678a 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: 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>
2024-03-26 11:07:23 -07:00
..
.gitignore
Makefile
asm-offsets.c
dma.c
head.S
hexagon_ksyms.c
irq_cpu.c
kgdb.c
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
signal.c hexagon: signal: switch to SYSCALL_DEFINE0 for sys_rt_sigreturn() 2023-12-10 17:21:35 -08:00
smp.c smp: Consolidate smp_prepare_boot_cpu() 2024-03-04 12:01:54 +01: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-03-26 11:07:23 -07:00