OpenCloudOS-Kernel/arch
Masahiro Yamada ce697ccee1 kbuild: remove head-y syntax
Kbuild puts the objects listed in head-y at the head of vmlinux.
Conventionally, we do this for head*.S, which contains the kernel entry
point.

A counter approach is to control the section order by the linker script.
Actually, the code marked as __HEAD goes into the ".head.text" section,
which is placed before the normal ".text" section.

I do not know if both of them are needed. From the build system
perspective, head-y is not mandatory. If you can achieve the proper code
placement by the linker script only, it would be cleaner.

I collected the current head-y objects into head-object-list.txt. It is
a whitelist. My hope is it will be reduced in the long run.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Tested-by: Nick Desaulniers <ndesaulniers@google.com>
Reviewed-by: Nicolas Schier <nicolas@fjasle.eu>
2022-10-02 18:06:03 +09:00
..
alpha kbuild: remove head-y syntax 2022-10-02 18:06:03 +09:00
arc kbuild: remove head-y syntax 2022-10-02 18:06:03 +09:00
arm kbuild: remove head-y syntax 2022-10-02 18:06:03 +09:00
arm64 kbuild: remove head-y syntax 2022-10-02 18:06:03 +09:00
csky kbuild: remove head-y syntax 2022-10-02 18:06:03 +09:00
hexagon kbuild: remove head-y syntax 2022-10-02 18:06:03 +09:00
ia64 kbuild: remove head-y syntax 2022-10-02 18:06:03 +09:00
loongarch kbuild: remove head-y syntax 2022-10-02 18:06:03 +09:00
m68k kbuild: remove head-y syntax 2022-10-02 18:06:03 +09:00
microblaze kbuild: remove head-y syntax 2022-10-02 18:06:03 +09:00
mips kbuild: remove head-y syntax 2022-10-02 18:06:03 +09:00
nios2 kbuild: remove head-y syntax 2022-10-02 18:06:03 +09:00
openrisc kbuild: remove head-y syntax 2022-10-02 18:06:03 +09:00
parisc kbuild: remove head-y syntax 2022-10-02 18:06:03 +09:00
powerpc kbuild: remove head-y syntax 2022-10-02 18:06:03 +09:00
riscv kbuild: remove head-y syntax 2022-10-02 18:06:03 +09:00
s390 kbuild: remove head-y syntax 2022-10-02 18:06:03 +09:00
sh kbuild: remove head-y syntax 2022-10-02 18:06:03 +09:00
sparc kbuild: remove head-y syntax 2022-10-02 18:06:03 +09:00
um arch: um: Mark the stack non-executable to fix a binutils warning 2022-09-21 09:11:42 +02:00
x86 kbuild: remove head-y syntax 2022-10-02 18:06:03 +09:00
xtensa kbuild: remove head-y syntax 2022-10-02 18:06:03 +09:00
.gitignore
Kconfig asm-generic: Conditionally enable do_softirq_own_stack() via Kconfig. 2022-09-05 17:20:55 +02:00