Bug 544178

Summary: gmcs creating broken module
Product: [Mono] Mono: Compilers Reporter: Pepe Koko <kacu>
Component: C#Assignee: Marek Safar <msafar>
Status: RESOLVED FIXED QA Contact: Mono Bugs <mono-bugs>
Severity: Major    
Priority: P3 - Medium    
Version: SVN   
Target Milestone: ---   
Hardware: x86-64   
OS: Linux   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on: 504085    
Bug Blocks:    

Description Pepe Koko 2009-10-04 08:27:38 UTC
Description of Problem:
gmcs is creating broken module image( -t:module) when source contains assembly:AssemblyKeyFile annotation with key file
It seems to me that first 0x80 bytes of image are garbage. Rest of image looks same as good image produced from source with commented out AssemblyKeyFile reference. Size of broken and good image are same. In ms csc this problem doesn't exist.


Steps to reproduce the problem:
1. Create source with [assembly:AssemblyKeyFile("keyFile.snk")] and key file
2. gmcs -t:module source.cs


Actual Results:
Partially broken image


Expected Results:
Good image


How often does this happen? 
Always

Additional Information:
Comment 1 Marek Safar 2010-11-26 09:33:35 UTC
Fixed in master