summaryrefslogtreecommitdiff
path: root/include/llvm/Object/MachOFormat.h
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-11-27 13:33:15 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-11-27 13:33:15 +0000
commit2acadbddf6783055249da9fc9ea40a05b83ce56a (patch)
tree66029f05821ca67519974dd0d0a31f5280dfb7b0 /include/llvm/Object/MachOFormat.h
parent4c55e0db0f0a095dcd76326bef24d0fe05d2a5e4 (diff)
downloadllvm-2acadbddf6783055249da9fc9ea40a05b83ce56a.tar.gz
llvm-2acadbddf6783055249da9fc9ea40a05b83ce56a.tar.bz2
llvm-2acadbddf6783055249da9fc9ea40a05b83ce56a.tar.xz
macho-dump: Add support for dumping sections.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120215 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Object/MachOFormat.h')
-rw-r--r--include/llvm/Object/MachOFormat.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/include/llvm/Object/MachOFormat.h b/include/llvm/Object/MachOFormat.h
index a6f0afbd94..320140773d 100644
--- a/include/llvm/Object/MachOFormat.h
+++ b/include/llvm/Object/MachOFormat.h
@@ -219,7 +219,38 @@ namespace macho {
};
/// @}
+ /// @name Section Data
+ /// @{
+
+ struct Section {
+ char Name[16];
+ char SegmentName[16];
+ uint32_t Address;
+ uint32_t Size;
+ uint32_t Offset;
+ uint32_t Align;
+ uint32_t RelocationTableOffset;
+ uint32_t NumRelocationTableEntries;
+ uint32_t Flags;
+ uint32_t Reserved1;
+ uint32_t Reserved2;
+ };
+ struct Section64 {
+ char Name[16];
+ char SegmentName[16];
+ uint64_t Address;
+ uint64_t Size;
+ uint32_t Offset;
+ uint32_t Align;
+ uint32_t RelocationTableOffset;
+ uint32_t NumRelocationTableEntries;
+ uint32_t Flags;
+ uint32_t Reserved1;
+ uint32_t Reserved2;
+ uint32_t Reserved3;
+ };
+ /// @}
/// @name Indirect Symbol Table
/// @{