From 42f18fe442b72e98b9b855b6fb9a02461daa2b78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E9=B9=8F?= Date: Thu, 21 Mar 2024 16:17:20 +0800 Subject: [PATCH] add ppc64le support (cherry picked from commit 67d9585cc588822ac69ef448c77807290c6ced72) --- binutils.spec | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/binutils.spec b/binutils.spec index e8204c1..e8fc957 100644 --- a/binutils.spec +++ b/binutils.spec @@ -1,7 +1,7 @@ Summary: Binary utilities Name: binutils Version: 2.37 -Release: 26 +Release: 27 License: GPLv3+ URL: https://sourceware.org/binutils @@ -199,12 +199,12 @@ touch */configure %build CARGS= -case %{_target_platform} in i?86*|arm*|aarch64*|riscv64*|loongarch64*) +case %{_target_platform} in i?86*|arm*|aarch64*|riscv64*|loongarch64*|ppc64le*) CARGS="$CARGS --enable-64-bit-bfd" ;; esac -case %{_target_platform} in x86_64*|i?86*|aarch64*|riscv64*|loongarch64*) +case %{_target_platform} in x86_64*|i?86*|aarch64*|riscv64*|loongarch64*|ppc64le*) CARGS="$CARGS --enable-targets=x86_64-pep --enable-relro=yes" ;; esac @@ -372,6 +372,24 @@ INPUT ( %{_libdir}/libopcodes.a -lbfd ) EOF %endif +%ifarch ppc64le +tee %{buildroot}%{_libdir}/libbfd.so < - 2.37-27 +- add ppc64le support + * Fri Mar 08 2024 eastb233 - 2.37-26 - Support AArch64 SME -- Gitee