linux/arch/loongarch
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
..
boot
configs LoongArch: Update Loongson-3 default config file 2022-08-12 13:10:11 +08:00
include LoongArch: Fix section mismatch due to acpi_os_ioremap() 2022-09-03 18:01:27 +08:00
kernel kbuild: use obj-y instead extra-y for objects placed at the head 2022-10-02 18:04:05 +09:00
lib LoongArch: Improve dump_tlb() output messages 2022-09-03 18:01:27 +08:00
mm LoongArch: mm: Remove the unneeded result variable 2022-09-03 18:01:27 +08:00
pci LoongArch: Add PCI controller support 2022-08-12 13:10:11 +08:00
vdso LoongArch: Fix build warnings in VDSO 2022-08-25 19:34:59 +08:00
Kbuild
Kconfig LoongArch: Fix section mismatch due to acpi_os_ioremap() 2022-09-03 18:01:27 +08:00
Kconfig.debug LoongArch: Add prologue unwinder support 2022-08-12 13:10:11 +08:00
Makefile kbuild: remove head-y syntax 2022-10-02 18:06:03 +09:00