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 authored and Johannes Berg committed 2025-11-06 13:02:33 +01:00
1 parent 74d438872d
commit c1b0775151
2 files changed
+2 -4

No files matched your search

-3
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";
}
+2 -1
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;