diff --git a/pesign-0.10-missing-section-reloc.patch b/pesign-0.10-missing-section-reloc.patch new file mode 100644 index 0000000..e44f2e3 --- /dev/null +++ b/pesign-0.10-missing-section-reloc.patch @@ -0,0 +1,24 @@ +From a967a147079085fce9b3a4d66cbdd28ccbab559f Mon Sep 17 00:00:00 2001 +From: Peter Jones +Date: Fri, 28 Sep 2012 14:27:54 -0400 +Subject: [PATCH] Fix missing section relocation when we've added space. + +--- + libdpe/pe_allocspace.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/libdpe/pe_allocspace.c b/libdpe/pe_allocspace.c +index d766503..0ae1f5d 100644 +--- a/libdpe/pe_allocspace.c ++++ b/libdpe/pe_allocspace.c +@@ -46,6 +46,7 @@ pe_fix_addresses(Pe *pe, int64_t offset) + &pe->state.pe.shdr[cnt]; + + adjust(pe->state.pe.scns.data[cnt].rawdata_base, offset); ++ adjust(pe->state.pe.scns.data[cnt].data_base, offset); + } + } + #undef adjust +-- +1.7.12.1 + diff --git a/pesign.spec b/pesign.spec index ac76d9f..ea825b9 100644 --- a/pesign.spec +++ b/pesign.spec @@ -1,7 +1,7 @@ Summary: Signing utility for UEFI binaries Name: pesign Version: 0.10 -Release: 4%{?dist} +Release: 5%{?dist} Group: Development/System License: GPLv2 URL: https://github.com/vathpela/pesign @@ -19,6 +19,7 @@ Source1: rh-test-certs.tar.bz2 Patch0: pesign-0.10-better-macros.patch Patch1: pesign-0.10-only-sign-on-x86-64.patch Patch2: pesign-0.10-even-better-macros.patch +Patch3: pesign-0.10-missing-section-reloc.patch %description This package contains the pesign utility for signing UEFI binaries as @@ -59,6 +60,9 @@ rm -rf %{buildroot} %attr(0644,root,root) /etc/pki/pesign/* %changelog +* Mon Oct 01 2012 Peter Jones - 0.10-5 +- Fix missing section address fixup. + * Wed Aug 15 2012 Peter Jones - 0.10-4 - Make macros.pesign even better (and make it work right for i686 packages)