Add basic support for RISC-V 64-bit EFI objects, disable LTO and tests

This commit is contained in:
Andrew Lukoshko 2025-02-11 12:30:04 +00:00
parent d82e78e024
commit 47d833f38f
2 changed files with 1023 additions and 2 deletions

File diff suppressed because it is too large Load Diff

View File

@ -89,7 +89,6 @@ URL: https://sourceware.org/binutils
%else
# RISC-V does not have ld.gold thus disable by default.
%bcond_with gold
BuildRequires: bison
%endif
# Default: Not bootstrapping.
@ -100,6 +99,9 @@ BuildRequires: bison
%bcond_without docs
# Default: Always run the testsuite.
%bcond_without testsuite
%ifarch riscv64
%bcond_with testsuite
%endif
# Default: support debuginfod.
%bcond_without debuginfod
# Default: build binutils-gprofng package.
@ -381,6 +383,8 @@ Patch99: binutils-suppress-ld-align-tests.patch
#----------------------------------------------------------------------------
Patch100: 0001-Add-basic-support-for-RISC-V-64-bit-EFI-objects.patch
Provides: bundled(libiberty)
%if %{with debug}
@ -439,6 +443,10 @@ BuildRequires: zlib-devel
BuildRequires: elfutils-debuginfod-client-devel
%endif
%ifarch riscv64
BuildRequires: bison
%endif
Requires(post): %{_sbindir}/alternatives
Requires(preun): %{_sbindir}/alternatives
# We also need rm.
@ -1012,6 +1020,9 @@ run_tests()
%ifarch %{arm}
%define enable_lto 0
%endif
%ifarch riscv64
%define enable_lto 0
%endif
%if !0%{?enable_lto}
%global _lto_cflags %{nil}
@ -1410,7 +1421,10 @@ exit 0
#----------------------------------------------------------------------------
%changelog
* Sun Jan 19 2025 Andrew Lukoshko <alukoshko@almalinux.org> - 2.41-51.alma.1
- Add bison to BuildRequires for RISC-V unconditionally
- Add bison to BuildRequires for RISC-V
- Disable LTO for RISC-V
- Disable testsuite for RISC-V
- Add basic support for RISC-V 64-bit EFI objects (backported from 2.44)
* Mon Dec 02 2024 Nick Clifton <nickc@redhat.com> - 2.41-51
- Fix AArch64 linker testsuite problems.