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:
Thomas Weißschuh
2025-10-28 10:15:37 +01:00
committed by Johannes Berg
parent 74d438872d
commit c1b0775151
2 changed files with 2 additions and 4 deletions

View File

@@ -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";
}

View File

@@ -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;