linux/arch
Nathan Chancellor 18f1e2a91c 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:11:49 +02:00
..
alpha arch: fix asm-offsets.c building with -Wmissing-prototypes 2024-02-05 20:16:47 +00:00
arc work around gcc bugs with 'asm goto' with outputs 2024-02-23 09:51:20 +01:00
arm ARM: prctl: reject PR_SET_MDWE on pre-ARMv6 2024-04-03 15:11:47 +02:00
arm64 arm64: dts: qcom: sc8280xp-x13s: limit pcie4 link speed 2024-04-03 15:11:40 +02:00
csky work around gcc bugs with 'asm goto' with outputs 2024-02-23 09:51:20 +01:00
hexagon hexagon: vmlinux.lds.S: handle attributes section 2024-04-03 15:11:49 +02:00
loongarch LoongArch/crypto: Clean up useless assignment operations 2024-04-03 15:11:30 +02:00
m68k mm: Introduce flush_cache_vmap_early() 2024-02-16 19:14:25 +01:00
microblaze asm-generic updates for v6.7 2023-11-01 15:28:33 -10:00
mips MIPS: Clear Cause.BD in instruction_pointer_set 2024-03-26 18:17:50 -04:00
nios2 mm: Introduce flush_cache_vmap_early() 2024-02-16 19:14:25 +01:00
openrisc OpenRISC updates for 6.6 2023-09-05 10:09:31 -07:00
parisc prctl: generalize PR_SET_MDWE support check to be per-arch 2024-04-03 15:11:47 +02:00
powerpc powerpc: xor_vmx: Add '-mhard-float' to CFLAGS 2024-04-03 15:11:19 +02:00
riscv riscv: Fix compilation error with FAST_GUP and rv32 2024-03-26 18:18:55 -04:00
s390 s390/vtime: fix average steal time calculation 2024-03-26 18:18:53 -04:00
sh mm: Introduce flush_cache_vmap_early() 2024-02-16 19:14:25 +01:00
sparc sparc32: Fix parport build with sparc32 2024-04-03 15:11:21 +02:00
um um: Fix adding '-no-pie' for clang 2024-02-23 09:51:39 +01:00
x86 x86/efistub: Add missing boot_params for mixed mode compat entry 2024-04-03 15:11:47 +02:00
xtensa work around gcc bugs with 'asm goto' with outputs 2024-02-23 09:51:20 +01:00
.gitignore
Kconfig scs: add CONFIG_MMU dependency for vfree_atomic() 2024-02-23 09:51:28 +01:00