mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 16:44:58 +02:00
x86/vmlinux.lds.S: Remove conditional definition of LOAD_OFFSET
In vmlinux.lds.S, we define LOAD_OFFSET conditionally to __PAGE_OFFSET or __START_KERNEL_map. While __START_KERNEL_map is already defined to the same value with the same condition. So it is fine to define LOAD_OFFSET to __START_KERNEL_map directly. 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-4-richard.weiyang@gmail.com
This commit is contained in:
parent
1793f69326
commit
a5cffd056e
|
|
@ -15,11 +15,7 @@
|
|||
* put it inside the section definition.
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_X86_32
|
||||
#define LOAD_OFFSET __PAGE_OFFSET
|
||||
#else
|
||||
#define LOAD_OFFSET __START_KERNEL_map
|
||||
#endif
|
||||
|
||||
#define RUNTIME_DISCARD_EXIT
|
||||
#define EMITS_PT_NOTE
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user