linux-stable/arch/hexagon
Nathan Chancellor 51c99c6795 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-13 12:59:04 +02:00
..
configs
include hexagon: add support for TIF_NOTIFY_SIGNAL 2023-01-04 11:39:20 +01:00
kernel hexagon: vmlinux.lds.S: handle attributes section 2024-04-13 12:59:04 +02:00
lib hexagon: export raw I/O routines for modules 2021-11-26 10:39:19 +01:00
mm mm/hexagon: use general page fault accounting 2020-08-12 10:58:03 -07:00
Kconfig hexagon: select ARCH_WANT_LD_ORPHAN_WARN 2022-08-21 15:15:33 +02:00
Kconfig.debug
Makefile Hexagon: add target builtins to kernel 2021-07-11 12:53:31 +02:00