pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

coreclr-git: Cherry-pick upstream patch 'Enable readonly data for Unix'



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Sun Jan 24 17:54:09 2016 +0100
Changeset:	6faf569ae770cb96764a1dc18c40f16f78787d5c

Added Files:
	corert-git/patches/patch-src_Native_Bootstrap_main.cpp

Log Message:
coreclr-git: Cherry-pick upstream patch 'Enable readonly data for Unix'

https://github.com/dotnet/corert/pull/719/files
by Kyungwoo Lee

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=6faf569ae770cb96764a1dc18c40f16f78787d5c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 .../patches/patch-src_Native_Bootstrap_main.cpp    | 36 ++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diffs:
diff --git a/corert-git/patches/patch-src_Native_Bootstrap_main.cpp b/corert-git/patches/patch-src_Native_Bootstrap_main.cpp
new file mode 100644
index 0000000..c9390a9
--- /dev/null
+++ b/corert-git/patches/patch-src_Native_Bootstrap_main.cpp
@@ -0,0 +1,36 @@
+$NetBSD$
+
+--- src/Native/Bootstrap/main.cpp.orig	2016-01-23 11:26:49.000000000 +0000
++++ src/Native/Bootstrap/main.cpp
+@@ -135,8 +135,7 @@ namespace System_Private_CoreLib { names
+ 
+ using namespace System_Private_CoreLib;
+ 
+-extern "C" void __EEType_System_Private_CoreLib_System_String();
+-extern "C" void __EEType_System_Private_CoreLib_System_String__Array();
++extern "C" void* __EEType_System_Private_CoreLib_System_String;
+ 
+ Object * __allocate_string(int32_t len)
+ {
+@@ -248,8 +247,8 @@ extern "C" void RhReRegisterForFinalize(
+ extern "C" void * g_pDispatchMapTemporaryWorkaround;
+ void * g_pDispatchMapTemporaryWorkaround;
+ 
+-extern "C" void __StringTableStart();
+-extern "C" void __StringTableEnd();
++extern "C" void* __StringTableStart;
++extern "C" void* __StringTableEnd;
+ extern "C" void* GetModuleSection(int id, int* length)
+ {
+     struct ModuleSectionSymbol
+@@ -266,8 +265,8 @@ extern "C" void* GetModuleSection(int id
+         { System::String::__getMethodTable(), sizeof(void*) },
+         { nullptr, 0 },
+ #else
+-        { __EEType_System_Private_CoreLib_System_String, sizeof(void*) },
+-        { __StringTableStart, (uint8_t*)__StringTableEnd - (uint8_t*)__StringTableStart },
++        { (void*)&__EEType_System_Private_CoreLib_System_String, sizeof(void*) },
++        { (void*)&__StringTableStart, (uint8_t*)&__StringTableEnd - (uint8_t*)&__StringTableStart },
+ #endif
+     };
+ 


Home | Main Index | Thread Index | Old Index