Use runtime pseudo reloc v1 by default

The version of mingw32-runtime we have does not support v2.
This commit is contained in:
Kalev Lember 2011-03-17 14:59:15 +02:00
parent 26d2be0f41
commit e8523ce48f
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,12 @@
diff -up binutils-2.21/ld/emultempl/pe.em.pseudo_reloc_v1 binutils-2.21/ld/emultempl/pe.em
--- binutils-2.21/ld/emultempl/pe.em.pseudo_reloc_v1 2010-09-22 11:03:41.000000000 +0300
+++ binutils-2.21/ld/emultempl/pe.em 2011-03-17 13:53:13.000000000 +0200
@@ -100,7 +100,7 @@ fragment <<EOF
#endif
#if defined(TARGET_IS_i386pe)
-#define DEFAULT_PSEUDO_RELOC_VERSION 2
+#define DEFAULT_PSEUDO_RELOC_VERSION 1
#else
#define DEFAULT_PSEUDO_RELOC_VERSION 1
#endif

View File

@ -7,6 +7,7 @@ License: GPLv2+ and LGPLv2+ and GPLv3+ and LGPLv3+
Group: Development/Libraries
URL: http://www.gnu.org/software/binutils/
Source0: http://ftp.gnu.org/gnu/binutils/binutils-%{version}.tar.bz2
Patch0: mingw32-binutils-2.21-pseudo_reloc_v1.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: flex
@ -25,6 +26,7 @@ understand Windows executables and DLLs.
%prep
%setup -q -n binutils-%{version}
%patch0 -p1 -b .pseudo_reloc_v1
%build
@ -72,6 +74,8 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Thu Mar 17 2011 Kalev Lember <kalev@smartlink.ee> - 2.21-1
- Update to 2.21
- Added a patch to use runtime pseudo reloc v1 by default as the version of
mingw32-runtime we have does not support v2.
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.20.51.0.10-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild