]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
x86/um: Move ELF_PLATFORM fallback to x86-specific code
authorThomas Weißschuh <linux@weissschuh.net>
Tue, 28 Oct 2025 09:15:37 +0000 (10:15 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 6 Nov 2025 12:02:33 +0000 (13:02 +0100)
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>
arch/um/os-Linux/elf_aux.c
arch/x86/um/asm/elf.h

index a62fe39e85c90a22c5cf76950e5d00d114195763..4aadb9ea5ae3a16494e4a728237aa654e99927d6 100644 (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";
 }
index 62ed5d68a9788ffbf9dd0b4ebbe2caad4ac7a7c6..e7a045e014718d4227a1610d8a025e303706e797 100644 (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;