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>
Showing
- Documentation/kbuild/makefiles.rst 5 additions, 4 deletionsDocumentation/kbuild/makefiles.rst
- Makefile 2 additions, 2 deletionsMakefile
- arch/alpha/Makefile 0 additions, 2 deletionsarch/alpha/Makefile
- arch/arc/Makefile 0 additions, 2 deletionsarch/arc/Makefile
- arch/arm/Makefile 0 additions, 3 deletionsarch/arm/Makefile
- arch/arm64/Makefile 0 additions, 3 deletionsarch/arm64/Makefile
- arch/csky/Makefile 0 additions, 2 deletionsarch/csky/Makefile
- arch/hexagon/Makefile 0 additions, 2 deletionsarch/hexagon/Makefile
- arch/ia64/Makefile 0 additions, 1 deletionarch/ia64/Makefile
- arch/loongarch/Makefile 0 additions, 2 deletionsarch/loongarch/Makefile
- arch/m68k/Makefile 0 additions, 9 deletionsarch/m68k/Makefile
- arch/microblaze/Makefile 0 additions, 1 deletionarch/microblaze/Makefile
- arch/mips/Makefile 0 additions, 2 deletionsarch/mips/Makefile
- arch/nios2/Makefile 0 additions, 1 deletionarch/nios2/Makefile
- arch/openrisc/Makefile 0 additions, 2 deletionsarch/openrisc/Makefile
- arch/parisc/Makefile 0 additions, 2 deletionsarch/parisc/Makefile
- arch/powerpc/Makefile 0 additions, 12 deletionsarch/powerpc/Makefile
- arch/riscv/Makefile 0 additions, 2 deletionsarch/riscv/Makefile
- arch/s390/Makefile 0 additions, 2 deletionsarch/s390/Makefile
- arch/sh/Makefile 0 additions, 2 deletionsarch/sh/Makefile
Loading
Please register or sign in to comment