SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
26
www/chromium/patches/patch-v8_src_execution_isolate_cc
Normal file
26
www/chromium/patches/patch-v8_src_execution_isolate_cc
Normal file
|
@ -0,0 +1,26 @@
|
|||
Index: v8/src/execution/isolate.cc
|
||||
--- v8/src/execution/isolate.cc.orig
|
||||
+++ v8/src/execution/isolate.cc
|
||||
@@ -146,6 +146,10 @@
|
||||
#include "src/execution/simulator-base.h"
|
||||
#endif
|
||||
|
||||
+#if defined(V8_OS_OPENBSD)
|
||||
+#include <sys/mman.h>
|
||||
+#endif
|
||||
+
|
||||
extern "C" const uint8_t v8_Default_embedded_blob_code_[];
|
||||
extern "C" uint32_t v8_Default_embedded_blob_code_size_;
|
||||
extern "C" const uint8_t v8_Default_embedded_blob_data_[];
|
||||
@@ -3958,6 +3962,11 @@ void Isolate::InitializeDefaultEmbeddedBlob() {
|
||||
uint32_t code_size = DefaultEmbeddedBlobCodeSize();
|
||||
const uint8_t* data = DefaultEmbeddedBlobData();
|
||||
uint32_t data_size = DefaultEmbeddedBlobDataSize();
|
||||
+
|
||||
+#if defined(V8_OS_OPENBSD) && !defined(V8_TARGET_ARCH_IA32)
|
||||
+ mprotect(reinterpret_cast<void *>(const_cast<uint8_t *>(code)),
|
||||
+ code_size, PROT_READ | PROT_EXEC);
|
||||
+#endif
|
||||
|
||||
if (StickyEmbeddedBlobCode() != nullptr) {
|
||||
base::MutexGuard guard(current_embedded_blob_refcount_mutex_.Pointer());
|
Loading…
Add table
Add a link
Reference in a new issue