add ppc64le support
This commit is contained in:
parent
0b514da5db
commit
67d9585cc5
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user