forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Tested-by: Nick Desaulniers <[email protected]> Reviewed-by: Nicolas Schier <[email protected]>
- Loading branch information
Showing
24 changed files
with
60 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# Head objects | ||
# | ||
# The objects listed here are placed at the head of vmlinux. A typical use-case | ||
# is an object that contains the entry point. This is kept for compatibility | ||
# with head-y, which Kbuild used to support. | ||
# | ||
# A counter approach is to control the section placement by the linker script. | ||
# The code marked as __HEAD goes into the ".head.text" section, which is placed | ||
# before the normal ".text" section. | ||
# | ||
# If you can achieve the correct code ordering by linker script, please delete | ||
# the entry from this file. | ||
# | ||
arch/alpha/kernel/head.o | ||
arch/arc/kernel/head.o | ||
arch/arm/kernel/head-nommu.o | ||
arch/arm/kernel/head.o | ||
arch/arm64/kernel/head.o | ||
arch/csky/kernel/head.o | ||
arch/hexagon/kernel/head.o | ||
arch/ia64/kernel/head.o | ||
arch/loongarch/kernel/head.o | ||
arch/m68k/68000/head.o | ||
arch/m68k/coldfire/head.o | ||
arch/m68k/kernel/head.o | ||
arch/m68k/kernel/sun3-head.o | ||
arch/microblaze/kernel/head.o | ||
arch/mips/kernel/head.o | ||
arch/nios2/kernel/head.o | ||
arch/openrisc/kernel/head.o | ||
arch/parisc/kernel/head.o | ||
arch/powerpc/kernel/head_40x.o | ||
arch/powerpc/kernel/head_44x.o | ||
arch/powerpc/kernel/head_64.o | ||
arch/powerpc/kernel/head_8xx.o | ||
arch/powerpc/kernel/head_book3s_32.o | ||
arch/powerpc/kernel/head_fsl_booke.o | ||
arch/powerpc/kernel/entry_64.o | ||
arch/powerpc/kernel/fpu.o | ||
arch/powerpc/kernel/vector.o | ||
arch/powerpc/kernel/prom_init.o | ||
arch/riscv/kernel/head.o | ||
arch/s390/kernel/head64.o | ||
arch/sh/kernel/head_32.o | ||
arch/sparc/kernel/head_32.o | ||
arch/sparc/kernel/head_64.o | ||
arch/x86/kernel/head_32.o | ||
arch/x86/kernel/head_64.o | ||
arch/x86/kernel/head32.o | ||
arch/x86/kernel/head64.o | ||
arch/x86/kernel/ebda.o | ||
arch/x86/kernel/platform-quirks.o | ||
arch/xtensa/kernel/head.o |