diff --git a/binutils-LOONGARCH-support.patch b/binutils-LOONGARCH-support.patch index d738988c2b2a99e6e8da259f5184ab823a1ce088..85ed081a12acf122d0bc4d3d1f90bd8cfa5ccfab 100644 --- a/binutils-LOONGARCH-support.patch +++ b/binutils-LOONGARCH-support.patch @@ -95,8 +95,8 @@ diff -uNr binutils-2.37.org/bfd/bfd-in2.h binutils-2.37/bfd/bfd-in2.h diff -uNr binutils-2.37.org/bfd/config.bfd binutils-2.37/bfd/config.bfd --- binutils-2.37.org/bfd/config.bfd 2022-03-23 16:44:12.029041179 +0800 +++ binutils-2.37/bfd/config.bfd 2022-03-24 16:30:09.328113543 +0800 -@@ -182,6 +182,7 @@ - i[34567]86) targ_archs=bfd_i386_arch ;; +@@ -182,6 +182,7 @@ hppa*) targ_archs=bfd_hppa_arch ;; + i[3-7]86) targ_archs=bfd_i386_arch ;; ia16) targ_archs=bfd_i386_arch ;; lm32) targ_archs=bfd_lm32_arch ;; +loongarch*) targ_archs=bfd_loongarch_arch ;; diff --git a/binutils.spec b/binutils.spec index dc2f96e022526e0d49b1cd77ad2fbc2157ec64f7..f21cf46f6eec0824900e925925fa305a4aa9e1da 100644 --- a/binutils.spec +++ b/binutils.spec @@ -1,14 +1,14 @@ Summary: Binary utilities Name: binutils Version: 2.37 -Release: 8 +Release: 9 License: GPLv3+ URL: https://sourceware.org/binutils Source: https://ftp.gnu.org/gnu/binutils/binutils-%{version}.tar.xz # risc-v do not support gold linker. -%ifnarch riscv64 +%ifnarch riscv64 loongarch64 %bcond_without gold %else %bcond_with gold @@ -373,6 +373,9 @@ fi %{_infodir}/bfd*info* %changelog +* Tue Apr 26 2022 liyanan - 2.37-9 +- fix build error for openEuler:22.03:LTS:LoongArch + * Tue Apr 19 2022 lixing - 2.37-8 - Type:requirements - ID:NA