SHA256
1
0
forked from pool/docker
docker/boltdb_bolt_add_brokenUnaligned.patch

28 lines
971 B
Diff

From: Michel Normand <normand@linux.vnet.ibm.com>
Subject: boltdb bolt add brokenUnaligned for ppc64
Date: Tue, 20 Dec 2016 10:19:01 +0100
boltdb bolt add brokenUnaligned for ppc64
as already done for bolt_ppc64le.go
Correction already submitted upstream as
https://github.com/boltdb/bolt/pull/635
Signed-off-by: Michel Normand <normand@linux.vnet.ibm.com>
---
vendor/src/github.com/boltdb/bolt/bolt_ppc64.go | 3 +++
1 file changed, 3 insertions(+)
Index: docker-1.12.3/vendor/src/github.com/boltdb/bolt/bolt_ppc64.go
===================================================================
--- docker-1.12.3.orig/vendor/src/github.com/boltdb/bolt/bolt_ppc64.go
+++ docker-1.12.3/vendor/src/github.com/boltdb/bolt/bolt_ppc64.go
@@ -7,3 +7,6 @@ const maxMapSize = 0xFFFFFFFFFFFF // 256
// maxAllocSize is the size used when creating array pointers.
const maxAllocSize = 0x7FFFFFFF
+
+// Are unaligned load/stores broken on this arch?
+var brokenUnaligned = false