diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2022-09-24 20:19:15 +0200 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2022-10-02 11:06:03 +0200 |
commit | ce697ccee1a8661da4e23fbe5f3d45d8d6922c20 (patch) | |
tree | 3e4a66982f38b33d4c17b13a04161eb764bf6220 /arch/arm64/Makefile | |
parent | kbuild: use obj-y instead extra-y for objects placed at the head (diff) | |
download | linux-ce697ccee1a8661da4e23fbe5f3d45d8d6922c20.tar.xz linux-ce697ccee1a8661da4e23fbe5f3d45d8d6922c20.zip |
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>
Diffstat (limited to 'arch/arm64/Makefile')
-rw-r--r-- | arch/arm64/Makefile | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile index 6d9d4a58b898..6e03f15bb041 100644 --- a/arch/arm64/Makefile +++ b/arch/arm64/Makefile @@ -133,9 +133,6 @@ ifeq ($(CONFIG_DYNAMIC_FTRACE_WITH_REGS),y) CC_FLAGS_FTRACE := -fpatchable-function-entry=2 endif -# Default value -head-y := arch/arm64/kernel/head.o - ifeq ($(CONFIG_KASAN_SW_TAGS), y) KASAN_SHADOW_SCALE_SHIFT := 4 else ifeq ($(CONFIG_KASAN_GENERIC), y) |