Add ia64-support.patch

 * Add patch to add build support for ia64.
   - Fixes the memory allocator on ia64
parent 0fc37fae
......@@ -13,6 +13,8 @@ mozjs52 (52.3.1-8) UNRELEASED; urgency=medium
* Add patch to add build support for sparc64:
- sparc64-support.patch (Closes: #887494)
* Ignore testsuite failures on ia64 (Closes: #897117)
* Add patch to add build support for ia64:
- ia64-support.patch (Closes: #897178)
-- Jeremy Bicha <jbicha@debian.org> Fri, 20 Oct 2017 19:51:21 -0400
......
--- mozjs52-52.3.1/js/src/jit/ProcessExecutableMemory.cpp.orig 2017-08-08 12:25:50.000000000 +0200
+++ mozjs52-52.3.1/js/src/jit/ProcessExecutableMemory.cpp 2018-05-08 12:36:58.638597620 +0200
@@ -290,9 +290,20 @@
void* randomAddr = ComputeRandomAllocationAddress();
void* p = MozTaggedAnonymousMmap(randomAddr, bytes, PROT_NONE, MAP_PRIVATE | MAP_ANON,
-1, 0, "js-executable-memory");
+
+#ifndef __ia64__
if (p == MAP_FAILED)
return nullptr;
+#else
+ if (p == MAP_FAILED) {
+ // the comment above appears to be incorrect on ia64, so retry without the hint
+ p = MozTaggedAnonymousMmap(NULL, bytes, PROT_NONE, MAP_PRIVATE | MAP_ANON,
+ -1, 0, "js-executable-memory");
+ if (p == MAP_FAILED)
+ return nullptr;
+ }
return p;
+#endif
}
static void
......@@ -20,3 +20,4 @@ alpha-ia64-python-build-fixes.patch
sh4-support.patch
m68k-support.patch
sparc64-support.patch
ia64-support.patch
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment