mirror of
git://git.savannah.gnu.org/config.git
synced 2025-05-26 09:06:38 +12:00

This commit causes gnu-config to recognize the *-*-uefi triples. These triples describe binaries which use the PE object file format and UEFI calling "convention" (which is actually a family of completely unrelated calling conventions, one per CPU architecture): - https://uefi.org/specs/UEFI/2.9_A/02_Overview.html#detailed-calling-convention - https://uefi.org/specs/UEFI/2.9_A/02_Overview.html#detailed-calling-convention-1 - https://uefi.org/specs/UEFI/2.9_A/02_Overview.html#detailed-calling-convention-2 - https://wiki.osdev.org/UEFI#Calling_Conventions This is in contrast to the *-w64-mingw32 triple of GNU-EFI, which uses the ELF format and cdecl calling convention: - https://wiki.osdev.org/UEFI#Calling_Conventions Because *-*-uefi uses a different object file format (everywhere) and calling convention (everywhere except x86_32) from *-w64-mingw32, the resulting binaries cannot be linked against each other. This is the primary justification for introducing a new triple. Since gnu-config does not yet have triples for these builds, we might as well use the same ones already selected by LLVM. It considers uefi to be an operating system: - https://reviews.llvm.org/D131594 * config.sub (*-*-uefi): Recognize. * testsuite/config-sub.data (i686-unknown-uefi, x86_64-unknown-uefi, aarch64-unknown-uefi): New entries. Signed-off-by: Adam Joseph <adam@westernsemico.com> X-Disclaimer: This commit shall not be construed as the author's approval of the UEFI boondoggle in any way, shape or form. Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
Description
No description provided
Languages
Perl
77.6%
Shell
18.9%
Makefile
3.5%