[PATCH 0/4] Cleanup vmlinux.lds.S

From: Wei Yang
Date: Wed Mar 13 2024 - 03:59:18 EST


To support 32/64 bits system, we have some definition conditionally. while
some definition is duplicated:

* __PHYSICAL_START has the same definition as LOAD_PHYSICAL_ADDR
* LOAD_OFFSET could be defined directly to __START_KERNEL_map

After these cleanup, we could reduce some complexity of vmlinux.lds.S.

Wei Yang (4):
vmlinux.lds.h: fix a typo in comment
x86/boot: replace __PHYSICAL_START with LOAD_PHYSICAL_ADDR
x86/vmlinux.lds.S: remove conditional definition of LOAD_OFFSET
x86/vmlinux.lds.S: take __START_KERNEL out conditional definition

arch/x86/include/asm/boot.h | 5 -----
arch/x86/include/asm/page_types.h | 8 +++++---
arch/x86/kernel/vmlinux.lds.S | 7 +------
include/asm-generic/vmlinux.lds.h | 2 +-
4 files changed, 7 insertions(+), 15 deletions(-)

--
2.34.1