summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com>2017-11-06 09:18:08 -0500
committerMathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com>2017-11-06 09:18:08 -0500
commit81b34c16318358dda4aaf8701250dab3b0401b7d (patch)
tree6d9f3943daddaab815d6224069957df752b6716c
parent4a3efbe436c66ad0519563045c401e7191dc1bbd (diff)
downloadefi-boot-shim-81b34c16318358dda4aaf8701250dab3b0401b7d.tar.gz
efi-boot-shim-81b34c16318358dda4aaf8701250dab3b0401b7d.zip
debian/patches/abort_abort_abort.patch: signtool.exe isn't happy with some of the structure of our binary, partly because abort() is thought to be an external symbol, which causes some relocalisations to appear.
-rw-r--r--debian/changelog8
-rw-r--r--debian/patches/abort_abort_abort.patch18
-rw-r--r--debian/patches/series1
3 files changed, 27 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index f55cf3c3..c5832328 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+shim (13-0ubuntu2) UNRELEASED; urgency=medium
+
+ * debian/patches/abort_abort_abort.patch: signtool.exe isn't happy with some
+ of the structure of our binary, partly because abort() is thought to be an
+ external symbol, which causes some relocalisations to appear.
+
+ -- Mathieu Trudel-Lapierre <cyphermox@ubuntu.com> Mon, 06 Nov 2017 09:13:01 -0500
+
shim (13-0ubuntu1) artful; urgency=medium
* New upstream release: 13
diff --git a/debian/patches/abort_abort_abort.patch b/debian/patches/abort_abort_abort.patch
new file mode 100644
index 00000000..2afdac4c
--- /dev/null
+++ b/debian/patches/abort_abort_abort.patch
@@ -0,0 +1,18 @@
+From: Peter Jones <pjones@redhat.com>
+Subject: define abort to avoid an unnecessary reloc.
+
+---
+ Cryptlib/Include/OpenSslSupport.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+Index: b/Cryptlib/Include/OpenSslSupport.h
+===================================================================
+--- a/Cryptlib/Include/OpenSslSupport.h
++++ b/Cryptlib/Include/OpenSslSupport.h
+@@ -380,5 +380,6 @@ extern FILE *stdout;
+ #define atoi(nptr) AsciiStrDecimalToUintn(nptr)
+ #define gettimeofday(tvp,tz) do { (tvp)->tv_sec = time(NULL); (tvp)->tv_usec = 0; } while (0)
+ #define gmtime_r(timer,result) (result = NULL)
++#define abort()
+
+ #endif
diff --git a/debian/patches/series b/debian/patches/series
index e69de29b..ae84c759 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -0,0 +1 @@
+abort_abort_abort.patch