Keep 6.1 in-sync with Build ID fixes. I've build tested this on {x86_64, arm64, riscv, powerpc, s390, sh}. Changes for v2: - include 1/7 2348e6bf4421 ("riscv: remove special treatment for the link order of head.o") - include 2/7 994b7ac1697b ("arm64: remove special treatment for the link order of head.o") - rebase 7/7 c1c551bebf92 ("sh: define RUNTIME_DISCARD_EXIT") from upstream Previous threads: [1] https://lore.kernel.org/all/cover.1674876902.git.tom.saeger@xxxxxxxxxx/ [2] https://lore.kernel.org/all/3df32572ec7016e783d37e185f88495831671f5d.1671143628.git.tom.saeger@xxxxxxxxxx/ [3] https://lore.kernel.org/all/cover.1670358255.git.tom.saeger@xxxxxxxxxx/ Signed-off-by: Tom Saeger <tom.saeger@xxxxxxxxxx> --- Jisheng Zhang (1): riscv: remove special treatment for the link order of head.o Masahiro Yamada (3): arm64: remove special treatment for the link order of head.o arch: fix broken BuildID for arm64 and riscv s390: define RUNTIME_DISCARD_EXIT to fix link error with GNU ld < 2.36 Michael Ellerman (2): powerpc/vmlinux.lds: Define RUNTIME_DISCARD_EXIT powerpc/vmlinux.lds: Don't discard .rela* for relocatable builds Tom Saeger (1): sh: define RUNTIME_DISCARD_EXIT arch/powerpc/kernel/vmlinux.lds.S | 6 +++++- arch/s390/kernel/vmlinux.lds.S | 2 ++ arch/sh/kernel/vmlinux.lds.S | 1 + include/asm-generic/vmlinux.lds.h | 5 +++++ scripts/head-object-list.txt | 2 -- 5 files changed, 13 insertions(+), 3 deletions(-) --- base-commit: d60c95efffe84428e3611431bf688f50bfc13f4e change-id: 20230210-tsaeger-upstream-linux-6-1-y-06c93fbe5bc8 Best regards, -- Tom Saeger <tom.saeger@xxxxxxxxxx>