Generate libbfd.so and libopcodes.so for ppc64le

This commit is contained in:
frey1186 2023-10-11 15:20:52 +08:00
parent ad394ac8e1
commit b18e520894

View File

@ -2,7 +2,7 @@
Summary: A GNU collection of binary utilities
Name: binutils%{?_with_debug:-debug}
Version: 2.40
Release: 3
Release: 4
License: GPL-3.0-or-later
URL: https://sourceware.org/binutils
@ -1025,6 +1025,24 @@ install_binutils()
# Generate libbfd.so and libopcodes.so
%ifarch %{power64}
tee %{buildroot}%{_libdir}/libbfd.so <<EOF
/* GNU ld script */
OUTPUT_FORMAT(elf64-powerpcle)
INPUT ( %{_libdir}/libbfd.a -liberty -lz -ldl )
EOF
tee %{buildroot}%{_libdir}/libopcodes.so <<EOF
/* GNU ld script */
OUTPUT_FORMAT(elf64-powerpcle)
INPUT ( %{_libdir}/libopcodes.a -lbfd )
EOF
%endif
%ifarch x86_64
tee %{buildroot}%{_libdir}/libbfd.so <<EOF
/* GNU ld script */
@ -1315,6 +1333,9 @@ exit 0
#----------------------------------------------------------------------------
%changelog
* Tue Oct 10 2023 frey <yangfeilong_2009@126.com> - 2.40-4
- Generate libbfd.so and libopcodes.so for powerpc
* Tue Aug 29 2023 eastb233 <xiezhiheng@huawei.com> - 2.40-3
- Rename ctf-spec.info in binutils package because gdb-help package also provides it