mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 00:53:34 +02:00
x86/vmlinux.lds.S: Take __START_KERNEL out conditional definition
If CONFIG_X86_32=y, the section start address is defined to be "LOAD_OFFSET + LOAD_PHYSICAL_ADDR", which is the same as __START_KERNEL_map. Unify it with the 64-bit definition to simplify the code. Signed-off-by: Wei Yang <richard.weiyang@gmail.com> Signed-off-by: Ingo Molnar <mingo@kernel.org> Link: https://lore.kernel.org/r/20240313075839.8321-5-richard.weiyang@gmail.com
This commit is contained in:
parent
a5cffd056e
commit
9b67ce2c12
|
|
@ -110,11 +110,10 @@ PHDRS {
|
|||
|
||||
SECTIONS
|
||||
{
|
||||
. = __START_KERNEL;
|
||||
#ifdef CONFIG_X86_32
|
||||
. = LOAD_OFFSET + LOAD_PHYSICAL_ADDR;
|
||||
phys_startup_32 = ABSOLUTE(startup_32 - LOAD_OFFSET);
|
||||
#else
|
||||
. = __START_KERNEL;
|
||||
phys_startup_64 = ABSOLUTE(startup_64 - LOAD_OFFSET);
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user