x86: In ld.so, diagnose missing APX support in APX-only builds

At this point, this is mainly a tool for testing the early ld.so
CPU compatibility diagnostics: GCC uses the new instructions in most
functions, so it's easy to spot if some of the early code is not
built correctly.

Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
This commit is contained in:
Florian Weimer 2024-04-25 17:20:28 +02:00
parent 049b7684c9
commit b62928f907

View File

@ -64,6 +64,11 @@ Fatal glibc error: CPU does not support x86-64-v%d\n", 4);
# endif /* ISA level 4 */
# endif /* ISA level 3 */
# endif /* ISA level 2 */
# ifdef GCCMACRO__APX_F__
if (!CPU_FEATURE_USABLE_P (cpu_features, APX_F))
_dl_fatal_printf ("\
Fatal glibc error: CPU does not support APX\n");
# endif
# endif /* IS_IN (rtld) */
}
}