!274 add ppc64le support

From: @peng_zou 
Reviewed-by: @eastb233 
Signed-off-by: @eastb233
This commit is contained in:
openeuler-ci-bot 2024-03-21 11:19:08 +00:00 committed by Gitee
commit 83e395e59b
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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 <<EOF
/* GNU ld script */
OUTPUT_FORMAT(elf64-littleppc64le)
INPUT ( %{_libdir}/libbfd.a -liberty -lz -ldl )
EOF
tee %{buildroot}%{_libdir}/libopcodes.so <<EOF
/* GNU ld script */
OUTPUT_FORMAT(elf64-littleppc64le)
INPUT ( %{_libdir}/libopcodes.a -lbfd )
EOF
%endif
rm -f %{buildroot}%{_infodir}/dir
rm -rf %{buildroot}%{_prefix}/%{_target_platform}
@ -447,6 +465,9 @@ fi
%{_infodir}/bfd*info*
%changelog
* Thu Mar 21 2024 peng.zou <peng.zou@shingroup.cn> - 2.37-27
- add ppc64le support
* Fri Mar 08 2024 eastb233 <xiezhiheng@huawei.com> - 2.37-26
- Support AArch64 SME