mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
x86/um: Move ELF_PLATFORM fallback to x86-specific code
The generic UM code should not have references to x86-specific value. Move the fallback into the x86-specific header. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> Link: https://patch.msgid.link/20251028-uml-remove-32bit-pseudo-vdso-v1-2-e930063eff5f@weissschuh.net Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
committed by
Johannes Berg
parent
74d438872d
commit
c1b0775151
@@ -71,7 +71,4 @@ __init void scan_elf_aux( char **envp)
|
||||
else {
|
||||
vsyscall_end = vsyscall_ehdr + page_size;
|
||||
}
|
||||
|
||||
if (!elf_aux_platform)
|
||||
elf_aux_platform = "i586";
|
||||
}
|
||||
|
||||
@@ -69,7 +69,8 @@
|
||||
} while (0);
|
||||
|
||||
extern char * elf_aux_platform;
|
||||
#define ELF_PLATFORM (elf_aux_platform)
|
||||
#define ELF_PLATFORM_FALLBACK "i586"
|
||||
#define ELF_PLATFORM (elf_aux_platform ?: ELF_PLATFORM_FALLBACK)
|
||||
|
||||
extern unsigned long vsyscall_ehdr;
|
||||
extern unsigned long vsyscall_end;
|
||||
|
||||
Reference in New Issue
Block a user