You've already forked linux-packaging-mono
Imported Upstream version 5.0.0.42
Former-commit-id: fd56571888259555122d8a0f58c68838229cea2b
This commit is contained in:
parent
1190d13a04
commit
6bdd276d05
42
external/linker/cecil/symbols/pdb/Microsoft.Cci.Pdb/DbiSecCon.cs
vendored
Normal file
42
external/linker/cecil/symbols/pdb/Microsoft.Cci.Pdb/DbiSecCon.cs
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
//
|
||||
// Copyright (c) Microsoft. All rights reserved.
|
||||
// This code is licensed under the Microsoft Public License.
|
||||
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
|
||||
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
|
||||
// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
|
||||
// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
|
||||
//
|
||||
//-----------------------------------------------------------------------------
|
||||
using System;
|
||||
|
||||
namespace Microsoft.Cci.Pdb {
|
||||
internal struct DbiSecCon {
|
||||
internal DbiSecCon(BitAccess bits) {
|
||||
bits.ReadInt16(out section);
|
||||
bits.ReadInt16(out pad1);
|
||||
bits.ReadInt32(out offset);
|
||||
bits.ReadInt32(out size);
|
||||
bits.ReadUInt32(out flags);
|
||||
bits.ReadInt16(out module);
|
||||
bits.ReadInt16(out pad2);
|
||||
bits.ReadUInt32(out dataCrc);
|
||||
bits.ReadUInt32(out relocCrc);
|
||||
//if (pad1 != 0 || pad2 != 0) {
|
||||
// throw new PdbException("Invalid DBI section. "+
|
||||
// "(pad1={0}, pad2={1})",
|
||||
// pad1, pad2);
|
||||
//}
|
||||
}
|
||||
|
||||
internal short section; // 0..1
|
||||
internal short pad1; // 2..3
|
||||
internal int offset; // 4..7
|
||||
internal int size; // 8..11
|
||||
internal uint flags; // 12..15
|
||||
internal short module; // 16..17
|
||||
internal short pad2; // 18..19
|
||||
internal uint dataCrc; // 20..23
|
||||
internal uint relocCrc; // 24..27
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user