Fix for new bug in strip -f when byte swapping

This commit is contained in:
roland 2005-05-09 00:30:55 +00:00
parent 5fa3867747
commit b4dfabf94e
2 changed files with 9 additions and 3 deletions

View File

@ -84,7 +84,7 @@
+ ac_status=$? + ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then + (exit $ac_status); }; }; then
+ ac_cv_cc_wextra + ac_cv_cc_wextra=yes
+else +else
+ echo "$as_me: failed program was:" >&5 + echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5 +sed 's/^/| /' conftest.$ac_ext >&5
@ -125,7 +125,7 @@
+old_CFLAGS="$CFLAGS" +old_CFLAGS="$CFLAGS"
+CFLAGS="$CFLAGS -Wextra" +CFLAGS="$CFLAGS -Wextra"
+AC_COMPILE_IFELSE([void foo (void) { }], +AC_COMPILE_IFELSE([void foo (void) { }],
+ ac_cv_cc_wextra, ac_cv_cc_wextra=no) + ac_cv_cc_wextra=yes, ac_cv_cc_wextra=no)
+CFLAGS="$old_CFLAGS"]) +CFLAGS="$old_CFLAGS"])
+AC_SUBST(WEXTRA) +AC_SUBST(WEXTRA)
+AS_IF([test "x$ac_cv_cc_wextra" = yes], [WEXTRA=-Wextra], [WEXTRA=-W]) +AS_IF([test "x$ac_cv_cc_wextra" = yes], [WEXTRA=-Wextra], [WEXTRA=-W])

View File

@ -1,5 +1,5 @@
%define version 0.107 %define version 0.107
%define release 1 %define release 2
%define gpl 0 %define gpl 0
%if %{?_with_compat:1}%{!?_with_compat:0} %if %{?_with_compat:1}%{!?_with_compat:0}
@ -26,6 +26,7 @@ Group: Development/Tools
Source: elfutils-%{version}.tar.gz Source: elfutils-%{version}.tar.gz
Patch1: elfutils-portability.patch Patch1: elfutils-portability.patch
Patch2: elfutils-bswap.patch Patch2: elfutils-bswap.patch
Patch3: elfutils-1.07-strip-byteswap.patch
Obsoletes: libelf libelf-devel Obsoletes: libelf libelf-devel
Requires: elfutils-libelf = %{version}-%{release} Requires: elfutils-libelf = %{version}-%{release}
%if %{gpl} %if %{gpl}
@ -116,6 +117,8 @@ sleep 1
find . \( -name configure -o -name config.h.in \) -print | xargs touch find . \( -name configure -o -name config.h.in \) -print | xargs touch
%endif %endif
%patch3 -p1
%build %build
mkdir build-%{_target_platform} mkdir build-%{_target_platform}
cd build-%{_target_platform} cd build-%{_target_platform}
@ -219,6 +222,9 @@ rm -rf ${RPM_BUILD_ROOT}
%{_libdir}/libelf.so %{_libdir}/libelf.so
%changelog %changelog
* Sun May 8 2005 Roland McGrath <roland@redhat.com> - 0.107-2
- fix strip -f byte-swapping bug
* Sun May 8 2005 Roland McGrath <roland@redhat.com> - 0.107-1 * Sun May 8 2005 Roland McGrath <roland@redhat.com> - 0.107-1
- update to 0.107 - update to 0.107
- readelf: improve DWARF output format - readelf: improve DWARF output format