[monolinker] Add additional preserve instruction for IReadOnlyCollection on System...
[mono.git] / mcs / tools / linker / Descriptors / mscorlib.xml
index 1cfe6e5c75882cb268976d0e7f020e2c32147317..0fae1a02c00e199a0a7ce7fc313fa3cd73f34963 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="utf-8" ?>
 <linker>
        <assembly fullname="mscorlib">
-       
+
                <type fullname="System.AppDomain" preserve="fields">
                        <method name="DoDomainUnload" />
                        <method name="DoTypeResolve" />
@@ -33,6 +33,8 @@
                        <method name="InternalArray__IndexOf" />
                        <method name="InternalArray__get_Item" />
                        <method name="InternalArray__set_Item" />
+                       <method name="InternalArray__IReadOnlyList_get_Item" />
+                       <method name="InternalArray__IReadOnlyCollection_get_Count" />
                </type>
                <type fullname="System.ArrayTypeMismatchException" />
                <type fullname="System.Attribute" />
@@ -84,6 +86,7 @@
                <type fullname="System.MonoAsyncCall" preserve="fields" />
                <type fullname="System.MonoCustomAttrs" preserve="fields" />
                <type fullname="System.MonoCustomAttrs/AttributeInfo" preserve="fields" />
+               <type fullname="System.MonoCQItem" preserve="all" />
                <type fullname="System.MonoEnumInfo" preserve="fields" />
                <type fullname="System.MonoListItem" preserve="fields" />
                <type fullname="System.MonoType" preserve="fields" />
                <type fullname="System.IO.StreamReader" />
                -->
 
+               <type fullname="System.Reflection.MonoAssembly">
+                       <method name=".ctor" />
+               </type>
+               <type fullname="System.Reflection.MonoModule">
+                       <method name=".ctor" />
+               </type>
+
                <type fullname="System.Reflection.Assembly" preserve="fields">
                        <method name="MonoDebugger_GetMethodToken" feature="sre" />
                        <method name="GetNamespaces" feature="sre" />
                        <method name="DefineCustom" />
                        <method name="DefineLPArrayInternal" />
                </type>
--
+
                <!--
                <type fullname="System.Runtime.CompilerServices.CallConvCdecl" />
                <type fullname="System.Runtime.CompilerServices.CallConvStdcall" />
                <type fullname="System.Runtime.Remoting.IRemotingTypeInfo">
                        <method name="CanCastTo" />
                </type>
-               <type fullname="System.Runtime.Remoting.Messaging.AsyncResult" />
+               <type fullname="System.Runtime.Remoting.Messaging.AsyncResult" preserve="fields" />
                <type fullname="System.Runtime.Remoting.Messaging.CallContext">
                        <method name="SetCurrentCallContext" />
                </type>