You've already forked linux-packaging-mono
Imported Upstream version 5.4.0.199
Former-commit-id: f4d318e4b2f128fa9f4d31b37bb3839a3fc0dfb2
This commit is contained in:
parent
536cd135cc
commit
5924117973
@@ -197,7 +197,7 @@ namespace Mono.Cecil.PE {
|
||||
void WritePEFileHeader ()
|
||||
{
|
||||
WriteUInt32 (0x00004550); // Magic
|
||||
WriteUInt16 (GetMachine ()); // Machine
|
||||
WriteUInt16 ((ushort) module.Architecture); // Machine
|
||||
WriteUInt16 (sections); // NumberOfSections
|
||||
WriteUInt32 (metadata.timestamp);
|
||||
WriteUInt32 (0); // PointerToSymbolTable
|
||||
@@ -211,22 +211,6 @@ namespace Mono.Cecil.PE {
|
||||
WriteUInt16 (characteristics); // Characteristics
|
||||
}
|
||||
|
||||
ushort GetMachine ()
|
||||
{
|
||||
switch (module.Architecture) {
|
||||
case TargetArchitecture.I386:
|
||||
return 0x014c;
|
||||
case TargetArchitecture.AMD64:
|
||||
return 0x8664;
|
||||
case TargetArchitecture.IA64:
|
||||
return 0x0200;
|
||||
case TargetArchitecture.ARMv7:
|
||||
return 0x01c4;
|
||||
}
|
||||
|
||||
throw new NotSupportedException ();
|
||||
}
|
||||
|
||||
Section LastSection ()
|
||||
{
|
||||
if (reloc != null)
|
||||
|
||||
Reference in New Issue
Block a user