Граф коммитов

616 Коммитов

Автор SHA1 Сообщение Дата
jfrijters d2eefd77b2 Bug fix. The OriginalFilename in the version info resource should only include the filename, not the path. 2013-02-07 11:58:27 +00:00
jfrijters ead034f0f5 Added another overload of the public API Module.__GetSectionInfo() that returns more information about the section. 2013-01-29 11:54:43 +00:00
jfrijters cad052fcaf Added new public API Module.__ResolveTypeSpecCustomModifiers() to resolve the (useless) custom modifiers that can be put on TypeSpecs. 2013-01-29 08:10:44 +00:00
jfrijters 5496d3ea4c Regression fix. The AssemblyNames returned by Module.__GetReferencedAssemblies() didn't have the ContentType set for windowruntime assembly references. 2013-01-28 07:18:51 +00:00
jfrijters bab8010805 Expose the Name and __ModuleHash for missing external Modules. 2013-01-28 07:17:27 +00:00
jfrijters b4dd8f0df8 Implemented ARM unmanaged exports. 2013-01-12 12:07:40 +00:00
jfrijters c0728228d5 Implemented ARM startup stub. 2013-01-12 12:06:30 +00:00
jfrijters 425ceed1ab WoA requires 4K section alignment (not 8K). 2013-01-12 11:57:36 +00:00
jfrijters 818c99014c Added Is32Bit property to PEWriter to remove the need to check for different architectures with the same pointer size. 2013-01-12 11:44:02 +00:00
jfrijters 39277c8d3e Throw NotSupportedException instead of NotImplementedException for unsupported architectures. 2013-01-12 11:35:43 +00:00
jfrijters 34e413822f Throw NotSupportedException when processing unmanaged exports with an unsupported target architecture. 2013-01-12 11:30:48 +00:00
jfrijters 81e0969343 Restructured relocation writing to pack all relocation in a page in the same block, as WoA apparently requires this. 2013-01-12 11:08:59 +00:00
jfrijters 15ea3bf863 Implemented Universe.ResolvedMissingMember event for fields, methods and properties. 2013-01-07 13:22:30 +00:00
jfrijters 575378c421 Fixed importing of CLR types with funny names (where we'd previously run into bugs in CLR's Type.Name and Type.Namespace). 2013-01-07 12:43:30 +00:00
jfrijters ad66552daf Added Universe.ResolvedMissingMember event. 2013-01-07 12:03:04 +00:00
jfrijters 3dad07d17b Changed type name parser to use Module as context, instead of Assembly. 2013-01-07 11:57:04 +00:00
jfrijters 8c4dec17ad Pass around Module as context, instead of Assembly. 2013-01-07 11:18:43 +00:00
jfrijters 0c3bed02d9 Added UniverseOptions.ResolveMissingMembers and deprecated EnableMissingMemberResolution(). 2013-01-07 09:22:43 +00:00
jfrijters bec8f6ab08 Fixed TypeFlags encoding of ContainsMissingType to use only two bits. 2012-12-26 09:21:27 +00:00
jfrijters ab288e82b5 - Implemented __ContainsMissingType for function pointer types.
- Changed __ContainsMissingType to take custom modifiers into account.
2012-12-24 10:49:51 +00:00
jfrijters fdcf287e2e Added caching for Type.__ContainsMissingType property to simplify the prevention of infinite recursion while evaluating generic parameter constraints. 2012-12-23 10:48:25 +00:00
jfrijters a9356752fd Changed build infrastructure to support targetting .NET 4.0 on systems where 4.5 is installed. 2012-12-12 09:00:17 +00:00
jfrijters dea2810827 Bug fix. If SizeOfOptionalHeader is greater than the number of bytes we read from the optional header, we should skip the additional bytes. If it is less, the image is invalid. Thanks to Jb Evain. 2012-12-08 07:25:13 +00:00
jfrijters 27ec5a1fec Revert previous fix because peverify 2.0 and 3.5 give an (incorrect) warning when TypeDefId isn't set for an exported type. 2012-12-06 14:12:21 +00:00
jfrijters 62e8a3815d Fixed regression introduced in recent change that introduced UniverseOptions.MetadataOnly. A ModuleReader can be constructed with a null universe. 2012-12-06 13:55:02 +00:00
jfrijters 3db612102e - Added UniverseOptions.MetadataOnly.
- Added comment describing UniverseOptions.
- Made user string heap loading lazy.
2012-12-04 09:03:20 +00:00
jfrijters f479993b4f When calling MethodBuilder.DefineParameter() multiple times for the same parameter, we would (sometimes) not store the ParameterBuilder and this would cause the resulting PE file to be corrupt. Now we store the duplicate Param records like SRE does. 2012-12-01 19:10:13 +00:00
Alan McGovern d80ebf2d90 [xamarin] Bump the toolsversion of the csproj 2012-11-27 11:42:54 +00:00
jfrijters cce548aa51 Made authenticode support optional because mcs can't depend on System.Security.dll. To disable it define NO_AUTHENTICODE. 2012-11-21 07:36:04 +00:00
jfrijters c33592476b Bug fix. We should not set ExportedType.TypeDefId for forwarded types. 2012-11-20 15:17:24 +00:00
jfrijters 874927ad13 Added Type.__IsTypeForwarder property to let mcs distinguish between "normal" missing types and forwarded missing types. 2012-11-20 15:01:55 +00:00
jfrijters 005c3edcbe Simplified LazyForwardType resolution to reuse ResolveExportedType() and thus always set the metadata token for forwarded missing types. 2012-11-20 14:33:13 +00:00
jfrijters b4b32cd03c If missing member resolution is enabled, automatically create missing modules as needed. 2012-11-20 14:09:41 +00:00
jfrijters 6350d0b96a Added the Assembly.ModuleResolve event. 2012-11-20 14:02:54 +00:00
jfrijters 4f3a23ab80 Fixed ExportedType resolver to support types defined in another module in this assembly. 2012-11-20 13:31:09 +00:00
jfrijters 779894ee33 Added UniverseOptions.DontProvideAutomaticDefaultConstructor to disable the "helpful" creation of a default constructor. 2012-11-11 11:29:31 +00:00
jfrijters 1e0429026b Throw InvalidOperationException when MethodBuilder.DefineGenericParameters() is called a second time. 2012-11-11 11:28:19 +00:00
jfrijters 20d6f5bb6f Removed IMAGE_DATA_DIRECTORY "abuse" from CliHeader. Removed writer dependency from PEReader. 2012-10-26 11:31:24 +00:00
jfrijters fb7cbe4bfd Bug fix. Changed AssemblyName.ProcessorArchitecture to match (weird) .NET behavior. When reading the property it returns the architecture of the PE file, not the field from the AssemblyDef record. 2012-10-24 17:08:07 +00:00
jfrijters ce6eea67d0 Made AssemblyBuilder.__AssemblyFlags a read/write property and marked __SetAssemblyFlags() obsolete. 2012-10-24 16:50:29 +00:00
jfrijters 18d16c0dcd Bug fix. LocalBuilder should extend LocalVariableInfo. 2012-10-19 20:12:36 +00:00
jfrijters 25ac5bfd41 Bug fix. ModuleReader.ResolveMember() should support types. Thanks to Jb Evain for finding this. 2012-10-19 19:19:20 +00:00
jfrijters 45f3c326f8 Implemented LocalVariableInfo.ToString(). 2012-10-18 23:04:09 +00:00
jfrijters 80d1154b44 Removed internal IsPseudoToken property from FieldToken and MethodToken. 2012-10-15 23:15:36 +00:00
jfrijters ac4db8d9a1 Made ModuleBuilder.IsPseudoToken() method static. 2012-10-15 23:14:45 +00:00
jfrijters d49e824d50 Refactored BeginCatchBlock and BeginExceptFilterBlock to get rid of the last MarkerType. 2012-10-14 21:20:06 +00:00
jfrijters 8471f7463d Small optimization to table record allocation. Thanks to Marek for the pointer. 2012-10-14 15:00:22 +00:00
jfrijters 2a4521fa59 Added helper method to AssemblyName to help Fusion parser convert public key to public key token. 2012-10-14 14:33:28 +00:00
jfrijters 5ea1b43c24 Stop relying on System.Reflection.AssemblyName to compute public key token from public key. 2012-10-14 14:29:36 +00:00
jfrijters c0b5911916 Moved hex key parser to separate method. 2012-10-14 14:20:51 +00:00