]> granicus.if.org Git - llvm/commitdiff
[llvm-readobj][MachO] Fix section type printing
authorSeiya Nuta <nuta@seiya.me>
Thu, 15 Aug 2019 07:22:04 +0000 (07:22 +0000)
committerSeiya Nuta <nuta@seiya.me>
Thu, 15 Aug 2019 07:22:04 +0000 (07:22 +0000)
Summary:
Currently, llvm-readobj mistakenly decodes section type as section attribute.

This patch fixes the bug and affected tests.

Reviewers: JDevlieghere, jhenderson, rupprecht, alexshap, echristo

Reviewed By: jhenderson, rupprecht, alexshap, echristo

Subscribers: javed.absar, rupprecht, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D66075

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368974 91177308-0d34-0410-b5e6-96231b3b80d8

55 files changed:
test/MC/MachO/ARM/darwin-ARM-reloc.s
test/MC/MachO/ARM/darwin-Thumb-reloc.s
test/MC/MachO/ARM/relax-thumb-ldr-literal.s
test/MC/MachO/absolute.s
test/MC/MachO/absolutize.s
test/MC/MachO/comm-1.s
test/MC/MachO/darwin-complex-difference.s
test/MC/MachO/darwin-x86_64-diff-relocs.s
test/MC/MachO/darwin-x86_64-nobase-relocs.s
test/MC/MachO/darwin-x86_64-reloc-offsets.s
test/MC/MachO/data.s
test/MC/MachO/debug_frame.s
test/MC/MachO/diff-with-two-sections.s
test/MC/MachO/direction_labels.s
test/MC/MachO/file.s
test/MC/MachO/indirect-symbols.s
test/MC/MachO/jcc.s
test/MC/MachO/lcomm-attributes.s
test/MC/MachO/loc.s
test/MC/MachO/pcrel-to-other-section.s
test/MC/MachO/relax-recompute-align.s
test/MC/MachO/reloc-pcrel-offset.s
test/MC/MachO/section-align-1.s
test/MC/MachO/section-align-2.s
test/MC/MachO/section-flags.s
test/MC/MachO/string-table.s
test/MC/MachO/symbol-diff.s
test/MC/MachO/symbol-flags.s
test/MC/MachO/symbol-indirect.s
test/MC/MachO/symbols-1.s
test/MC/MachO/tbss.s
test/MC/MachO/tdata.s
test/MC/MachO/thread_init_func.s
test/MC/MachO/tls.s
test/MC/MachO/tlv-reloc.s
test/MC/MachO/tlv.s
test/MC/MachO/values.s
test/MC/MachO/variable-exprs.s
test/MC/MachO/weakdef.s
test/MC/MachO/x86_32-optimal_nop.s
test/MC/MachO/x86_32-sections.s
test/MC/MachO/x86_32-symbols.s
test/MC/MachO/x86_64-sections.s
test/MC/MachO/zero-space.s
test/MC/MachO/zerofill-1.s
test/MC/MachO/zerofill-2.s
test/MC/MachO/zerofill-3.s
test/MC/MachO/zerofill-5.s
test/MC/X86/cfi_def_cfa-crash.s
test/tools/dsymutil/X86/dsym-companion.test
test/tools/llvm-readobj/macho-sections.test [new file with mode: 0644]
test/tools/llvm-readobj/macho-universal-x86_64.i386.test
test/tools/llvm-readobj/sections-ext.test
test/tools/llvm-readobj/sections.test
tools/llvm-readobj/MachODumper.cpp

index 317090763360cfa809eb4ebc0e8fa57ec0d076b6..f9a8d539f76781f9545349786b1b318e3e23ed6a 100644 (file)
@@ -47,7 +47,7 @@ Lsc0_0:
 @ CHECK:     Alignment: 0
 @ CHECK:     RelocationOffset: 0x1A8
 @ CHECK:     RelocationCount: 2
-@ CHECK:     Type: 0x0
+@ CHECK:     Type: Regular (0x0)
 @ CHECK:     Attributes [ (0x800004)
 @ CHECK:       PureInstructions (0x800000)
 @ CHECK:       SomeInstructions (0x4)
@@ -68,7 +68,7 @@ Lsc0_0:
 @ CHECK:     Alignment: 0
 @ CHECK:     RelocationOffset: 0x1B8
 @ CHECK:     RelocationCount: 2
-@ CHECK:     Type: 0x0
+@ CHECK:     Type: Regular (0x0)
 @ CHECK:     Attributes [ (0x0)
 @ CHECK:     ]
 @ CHECK:     Reserved1: 0x0
@@ -87,7 +87,7 @@ Lsc0_0:
 @ CHECK:     Alignment: 0
 @ CHECK:     RelocationOffset: 0x0
 @ CHECK:     RelocationCount: 0
-@ CHECK:     Type: ExtReloc (0x2)
+@ CHECK:     Type: CStringLiterals (0x2)
 @ CHECK:     Attributes [ (0x0)
 @ CHECK:     ]
 @ CHECK:     Reserved1: 0x0
index 6bfd8c8661bede8d7116a7a812d36830d9183c0e..8ee19a39e6de0e0f7a4ac0cd3c072db45e4fe831 100644 (file)
@@ -48,7 +48,7 @@ L_.str:
 @ CHECK:     Alignment: 2
 @ CHECK:     RelocationOffset: 0x160
 @ CHECK:     RelocationCount: 3
-@ CHECK:     Type: 0x0
+@ CHECK:     Type: Regular (0x0)
 @ CHECK:     Attributes [ (0x800004)
 @ CHECK:       PureInstructions (0x800000)
 @ CHECK:       SomeInstructions (0x4)
@@ -69,7 +69,7 @@ L_.str:
 @ CHECK:     Alignment: 2
 @ CHECK:     RelocationOffset: 0x0
 @ CHECK:     RelocationCount: 0
-@ CHECK:     Type: ExtReloc (0x2)
+@ CHECK:     Type: CStringLiterals (0x2)
 @ CHECK:     Attributes [ (0x0)
 @ CHECK:     ]
 @ CHECK:     Reserved1: 0x0
index d2d85194d870086f4a7c9453c048e8ef55345ebe..2ce65de7aab07514b9898bf4cabc583594bc4639 100644 (file)
@@ -10,7 +10,7 @@ _foo:
         ldr r2, (_foo - 4)
 
 @ CHECK:  RelocationCount: 0
-@ CHECK:  Type: 0x0
+@ CHECK:  Type: Regular (0x0)
 @ CHECK:  Attributes [ (0x800004)
 @ CHECK:    PureInstructions (0x800000)
 @ CHECK:    SomeInstructions (0x4)
index fa78fd88e3d12fc5a7af89b808845c364700bdfb..7d560d13712f8fa8cadecc7904f6a9180e0b89db 100644 (file)
@@ -43,7 +43,7 @@ foo_equals2 = (_foo - _bar + 0xffff0000)
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x800004)
 // CHECK:       PureInstructions (0x800000)
 // CHECK:       SomeInstructions (0x4)
index 0427d8915fa39e43dc0046b42fa13a15122fb4a6..1a776d787e3f1545dd56995de2559ecfc3773011 100644 (file)
@@ -72,7 +72,7 @@ Ldata_expr_2 = Ldata_d - Ldata_c
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x1AC
 // CHECK:     RelocationCount: 3
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x800004)
 // CHECK:       PureInstructions (0x800000)
 // CHECK:       SomeInstructions (0x4)
@@ -95,7 +95,7 @@ Ldata_expr_2 = Ldata_d - Ldata_c
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x1C4
 // CHECK:     RelocationCount: 3
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
index 123164c60c9cbb5b6dd0c65ae81186988055cf6f..f7c325c13ab01ef22f3b0f547e0f8499b458ba3b 100644 (file)
@@ -32,7 +32,7 @@
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x800000)
 // CHECK:       PureInstructions (0x800000)
 // CHECK:     ]
index 388ca1990558c95753863665dd5516889e95a647..ae483eff85c677a7e27aeeb37743c02d3347f7f6 100644 (file)
@@ -41,7 +41,7 @@ _d:
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x148
 // CHECK:     RelocationCount: 4
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x800000)
 // CHECK:       PureInstructions (0x800000)
 // CHECK:     ]
index 19d486ca8506782e3daf67ccfa8ade2531d9be48..3a25999c2b8c680f0f6e98978125e73481313d44 100644 (file)
@@ -149,7 +149,7 @@ L3:
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x26C
 // CHECK:     RelocationCount: 12
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x800004)
 // CHECK:       PureInstructions (0x800000)
 // CHECK:       SomeInstructions (0x4)
@@ -176,7 +176,7 @@ L3:
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x2CC
 // CHECK:     RelocationCount: 16
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x4)
 // CHECK:       SomeInstructions (0x4)
 // CHECK:     ]
index 1559998501f9e15e80eb904e06414c1d838536cd..b974cc673eeaeaffbc118de817bf802ca914b8c5 100644 (file)
@@ -41,7 +41,7 @@ Lbar:
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x800004)
 // CHECK:       PureInstructions (0x800000)
 // CHECK:       SomeInstructions (0x4)
index 4be9b2e54e30dbd5cf0efecb476f8dbe082ce65a..fc73ec633c280d69c1aec2984b054667869c77dc 100644 (file)
@@ -140,7 +140,7 @@ L1:
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x2E8
 // CHECK:     RelocationCount: 42
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x800004)
 // CHECK:       PureInstructions (0x800000)
 // CHECK:       SomeInstructions (0x4)
@@ -181,7 +181,7 @@ L1:
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
index 64ca12133dd7e282f1f5336ecbfca473d58786ad..299e55e88e9a452a623a459e5af63ffed2fbcb8f 100644 (file)
@@ -41,7 +41,7 @@
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x800000)
 // CHECK:       PureInstructions (0x800000)
 // CHECK:     ]
@@ -58,7 +58,7 @@
 // CHECK:     Alignment: 3
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
index 7ecc7463becf9eaa68d4dbcb6d3f1911d72171a3..b6601f78885fee09c20a31e80abb83e0c516501a 100644 (file)
@@ -36,7 +36,7 @@ Ltext_end:
 // CHECK:     Alignment: 2
 // CHECK:     RelocationOffset: 0x180
 // CHECK:     RelocationCount: 2
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x20000)
 // CHECK:       Debug (0x20000)
 // CHECK:     ]
index 0637f26779108bfb537b658bf64f4baad1974c67..6302ede13e10e9913625c2c6511885d385d979c5 100644 (file)
@@ -32,7 +32,7 @@ Ltmp4 = Leh_func_begin0-Ltmp3
 // CHECK-NEXT:     Alignment: 0
 // CHECK-NEXT:     RelocationOffset: 0x0
 // CHECK-NEXT:     RelocationCount: 0
-// CHECK-NEXT:     Type: 0x0
+// CHECK-NEXT:     Type: Regular (0x0)
 // CHECK-NEXT:     Attributes [ (0x800000)
 // CHECK-NEXT:       PureInstructions (0x800000)
 // CHECK-NEXT:     ]
@@ -51,7 +51,7 @@ Ltmp4 = Leh_func_begin0-Ltmp3
 // CHECK-NEXT:     Alignment: 0
 // CHECK-NEXT:     RelocationOffset: 0x0
 // CHECK-NEXT:     RelocationCount: 0
-// CHECK-NEXT:     Type: 0xB
+// CHECK-NEXT:     Type: Coalesced (0xB)
 // CHECK-NEXT:     Attributes [ (0x680000)
 // CHECK-NEXT:       LiveSupport (0x80000)
 // CHECK-NEXT:       NoTOC (0x400000)
index 84fc4246c5766cd98c7c98c29e9221b12207addf..0dac4f7377ead728c01f5b6d31d96ea6df06b444 100644 (file)
@@ -36,7 +36,7 @@ direction_labels:
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x800004)
 // CHECK:       PureInstructions (0x800000)
 // CHECK:       SomeInstructions (0x4)
index 487d8e3c3d9fb3e18d3e815f550a100519a551f0..0076fa5647023df59fb3e90f2785b0c4e9921978 100644 (file)
@@ -16,7 +16,7 @@
 // CHECK-NEXT:    Alignment: 0
 // CHECK-NEXT:    RelocationOffset: 0x0
 // CHECK-NEXT:    RelocationCount: 0
-// CHECK-NEXT:    Type: 0x0
+// CHECK-NEXT:    Type: Regular (0x0)
 // CHECK-NEXT:    Attributes [ (0x20000)
 // CHECK-NEXT:      Debug (0x20000)
 // CHECK-NEXT:    ]
index 78d39e829ebc8ee122b78627ad4a054c24fe5b42..d5221fb251494915b121f07cc2f1b45b8e639480 100644 (file)
@@ -45,7 +45,7 @@ _e:
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x800000)
 // CHECK:       PureInstructions (0x800000)
 // CHECK:     ]
@@ -64,7 +64,7 @@ _e:
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x8
+// CHECK:     Type: SymbolStubs (0x8)
 // CHECK:     Attributes [ (0x840000)
 // CHECK:       PureInstructions (0x800000)
 // CHECK:       SelfModifyingCode (0x40000)
@@ -85,7 +85,7 @@ _e:
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x6
+// CHECK:     Type: NonLazySymbolPointers (0x6)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x3
index d9941b9c674e421f05a7fa93d27e701bc529b436..9e7936dfec237b0386e3ba2f2d06b708af86e2e3 100644 (file)
@@ -90,7 +90,7 @@
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x800004)
 // CHECK:       PureInstructions (0x800000)
 // CHECK:       SomeInstructions (0x4)
index 21a50b10bfde065997de5d05e6a6094c9a9947ee..c3d2d60764eaf396c7c3a5302ab86a78926a3972 100644 (file)
@@ -39,7 +39,7 @@
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x800000)
 // CHECK:       PureInstructions (0x800000)
 // CHECK:     ]
@@ -56,7 +56,7 @@
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: LocReloc (0x1)
+// CHECK:     Type: ZeroFill (0x1)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
index c8f61feb11f26c2b2ac02aad243f6acd6ac7d35e..143142027ad444e4b987758f8fb5b27736768494 100644 (file)
@@ -14,7 +14,7 @@
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x12C
 // CHECK:     RelocationCount: 1
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x20000)
 // CHECK:       Debug (0x20000)
 // CHECK:     ]
index c68db8ba931a8e4199bc671c988be3eafc87eb33..e4f77c8ce3222cb7484316d11789f5424150ab59 100644 (file)
@@ -29,7 +29,7 @@ nop
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x800004)
 // CHECK:       PureInstructions (0x800000)
 // CHECK:       SomeInstructions (0x4)
@@ -50,7 +50,7 @@ nop
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x15C
 // CHECK:     RelocationCount: 1
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x800004)
 // CHECK:       PureInstructions (0x800000)
 // CHECK:       SomeInstructions (0x4)
index 99f8fb951459a65d398d7cf882d2715d13cf705d..30a5d82331ac68c1d68c85c6b1a3a48aa86a3656 100644 (file)
@@ -32,7 +32,7 @@ L2:
 // CHECK-NEXT:   Alignment: 4
 // CHECK-NEXT:   RelocationOffset: 0x0
 // CHECK-NEXT:   RelocationCount: 0
-// CHECK-NEXT:   Type: 0x0
+// CHECK-NEXT:   Type: Regular (0x0)
 // CHECK-NEXT:   Attributes [ (0x800004)
 // CHECK-NEXT:     PureInstructions (0x800000)
 // CHECK-NEXT:     SomeInstructions (0x4)
index 63887bfc9dc47bdb123f59d790bc814a54098cec..281d785c8607c6af447a2c29c60753f0aeffb398 100644 (file)
@@ -20,7 +20,7 @@ _b:
 // CHECK:   Alignment: 0
 // CHECK:   RelocationOffset: 0x0
 // CHECK:   RelocationCount: 0
-// CHECK:   Type: 0x0
+// CHECK:   Type: Regular (0x0)
 // CHECK:   Attributes [ (0x0)
 // CHECK:   ]
 // CHECK:   Reserved1: 0x0
index 6accf57e523406c26b29dde496fb4f480ab03f52..fa697af58b5e73c7dca46f48ff03a2c1db5fc2f5 100644 (file)
@@ -30,7 +30,7 @@ name:
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x800000)
 // CHECK:       PureInstructions (0x800000)
 // CHECK:     ]
index 4d380bc4989b704d1ce86d8c197225f7d28afcbb..39215e20d5755300e9c148c5fdde45770597416c 100644 (file)
@@ -39,7 +39,7 @@ baz:
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x800000)
 // CHECK:       PureInstructions (0x800000)
 // CHECK:     ]
@@ -56,7 +56,7 @@ baz:
 // CHECK:     Alignment: 2
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
@@ -72,7 +72,7 @@ baz:
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
index ca12c50820fc83142fe0a1435736aaa6d78b6b53..34fb60e9e7f00d73d6c692784b747ee5bd855ab1 100644 (file)
@@ -17,7 +17,7 @@ f0:
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x800000)
 // CHECK:       PureInstructions (0x800000)
 // CHECK:     ]
@@ -36,7 +36,7 @@ f0:
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x4)
 // CHECK:       SomeInstructions (0x4)
 // CHECK:     ]
index 39e68f71d5653d1f73b470bc0de51b6dada1dff3..e43ff03d311ffb3f3cc0c2673e43dbef4f5f875e 100644 (file)
@@ -27,7 +27,7 @@
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x11C
 // CHECK:     RelocationCount: 2
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x800004)
 // CHECK:       PureInstructions (0x800000)
 // CHECK:       SomeInstructions (0x4)
index 479bb7b03cd79969b8c63556459939d8dde4f95d..395e223b5837584e213b3ed110b0df358847fbc5 100644 (file)
@@ -31,7 +31,7 @@ _g.eh:
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x800000)
 // CHECK:       PureInstructions (0x800000)
 // CHECK:     ]
@@ -51,7 +51,7 @@ _g.eh:
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x188
 // CHECK:     RelocationCount: 2
-// CHECK:     Type: 0xB
+// CHECK:     Type: Coalesced (0xB)
 // CHECK:     Attributes [ (0x680000)
 // CHECK:       LiveSupport (0x80000)
 // CHECK:       NoTOC (0x400000)
index c3eb9773f65341b4106224de570dfbf2615641c2..991ea5628c42d70750326b7e5ab6c3667c8eb7ff 100644 (file)
@@ -84,7 +84,7 @@ sym_desc_flags:
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x800000)
 // CHECK:       PureInstructions (0x800000)
 // CHECK:     ]
@@ -101,7 +101,7 @@ sym_desc_flags:
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
index da09fb130cada1755c4370300b87a168dd3183c8..286e29283ab77d2473b4c9ddb41c2e8985776952 100644 (file)
@@ -94,7 +94,7 @@ sym_nlp_G:
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x800000)
 // CHECK:       PureInstructions (0x800000)
 // CHECK:     ]
@@ -111,7 +111,7 @@ sym_nlp_G:
 // CHECK:     Alignment: 2
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x7
+// CHECK:     Type: LazySymbolPointers (0x7)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
@@ -127,7 +127,7 @@ sym_nlp_G:
 // CHECK:     Alignment: 2
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x6
+// CHECK:     Type: NonLazySymbolPointers (0x6)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x5
index cb01de02b1612a8b02aee27a731d876dad8664bf..496ef3d17f63b86907c2be30e2409a4a8d60c266 100644 (file)
@@ -42,7 +42,7 @@ Lsym_asm_temp:
 // CHECK-X86_32:     Alignment: 0
 // CHECK-X86_32:     RelocationOffset: 0x0
 // CHECK-X86_32:     RelocationCount: 0
-// CHECK-X86_32:     Type: 0x0
+// CHECK-X86_32:     Type: Regular (0x0)
 // CHECK-X86_32:     Attributes [ (0x800000)
 // CHECK-X86_32:       PureInstructions (0x800000)
 // CHECK-X86_32:     ]
@@ -206,7 +206,7 @@ Lsym_asm_temp:
 // CHECK-X86_64:     Alignment: 0
 // CHECK-X86_64:     RelocationOffset: 0x0
 // CHECK-X86_64:     RelocationCount: 0
-// CHECK-X86_64:     Type: 0x0
+// CHECK-X86_64:     Type: Regular (0x0)
 // CHECK-X86_64:     Attributes [ (0x800000)
 // CHECK-X86_64:       PureInstructions (0x800000)
 // CHECK-X86_64:     ]
index ba1f93fed96929662d52266cace57c33a7e223cd..37a089f462751747c9a33fc8bed66fa1dbd751d5 100644 (file)
@@ -29,7 +29,7 @@
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x800000)
 // CHECK:       PureInstructions (0x800000)
 // CHECK:     ]
@@ -49,7 +49,7 @@
 // CHECK:     Alignment: 3
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x12
+// CHECK:     Type: ThreadLocalZerofill (0x12)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
index 4e2effe4287e6a3f1abc7328c740429063c00d84..e3d35a7443a6fe6e83ae4b9969bf41429bc4218a 100644 (file)
@@ -29,7 +29,7 @@ _a$tlv$init:
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x800000)
 // CHECK:       PureInstructions (0x800000)
 // CHECK:     ]
@@ -49,7 +49,7 @@ _a$tlv$init:
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x11
+// CHECK:     Type: ThreadLocalRegular (0x11)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
index c9a5edf6dd4e299fdc9391a8d2d92d269d4b7b9e..58d3fac801816d5230f7adb5ff830d9cd890b734 100644 (file)
@@ -29,7 +29,7 @@
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x800000)
 // CHECK:       PureInstructions (0x800000)
 // CHECK:     ]
@@ -49,7 +49,7 @@
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x15
+// CHECK:     Type: ThreadLocalInitFunctionPointers (0x15)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
index 16f54e7eb25dab9fb220d9be8273b790cd3f58c9..671184a8406d650685cb5179e478d1777c622499 100644 (file)
@@ -72,7 +72,7 @@ _b:
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x800000)
 // CHECK:       PureInstructions (0x800000)
 // CHECK:     ]
@@ -92,7 +92,7 @@ _b:
 // CHECK:     Alignment: 2
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x11
+// CHECK:     Type: ThreadLocalRegular (0x11)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
@@ -112,7 +112,7 @@ _b:
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x278
 // CHECK:     RelocationCount: 8
-// CHECK:     Type: 0x13
+// CHECK:     Type: ThreadLocalVariables (0x13)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
@@ -137,7 +137,7 @@ _b:
 // CHECK:     Alignment: 2
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x12
+// CHECK:     Type: ThreadLocalZerofill (0x12)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
index b52410198fddc8b27ae04216bad0db32bb5d277b..a429fdd2376af06c1a99399e94478add4c899105 100644 (file)
@@ -47,7 +47,7 @@ _foo:
 // CHECK:     Alignment: 4
 // CHECK:     RelocationOffset: 0x1E8
 // CHECK:     RelocationCount: 1
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x800004)
 // CHECK:       PureInstructions (0x800000)
 // CHECK:       SomeInstructions (0x4)
@@ -69,7 +69,7 @@ _foo:
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x11
+// CHECK:     Type: ThreadLocalRegular (0x11)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
@@ -89,7 +89,7 @@ _foo:
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x1F0
 // CHECK:     RelocationCount: 2
-// CHECK:     Type: 0x13
+// CHECK:     Type: ThreadLocalVariables (0x13)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
index 1d5c8c3ced90cc437bac027053a79b893d1b2149..774436bd3192e41119395ed1f9707f7c6518365f 100644 (file)
@@ -33,7 +33,7 @@ _a:
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x800000)
 // CHECK:       PureInstructions (0x800000)
 // CHECK:     ]
@@ -53,7 +53,7 @@ _a:
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x13
+// CHECK:     Type: ThreadLocalVariables (0x13)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
index 3218bb7cd9fb13c188848d7dea7b728ff968fbc0..5a406acfde0b7b83402ceebc15f667442b589250 100644 (file)
@@ -42,7 +42,7 @@ data_def_ext:
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x800000)
 // CHECK:       PureInstructions (0x800000)
 // CHECK:     ]
@@ -59,7 +59,7 @@ data_def_ext:
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
index b1830703d8dd17040e1925692df7ea2edb054d4f..c2eb05dceaeeff949a5ee83b64983d645fb4376e 100644 (file)
@@ -71,7 +71,7 @@ Lt0_x = Lt0_a - Lt0_b
 // CHECK-I386:     Alignment: 0
 // CHECK-I386:     RelocationOffset: 0x0
 // CHECK-I386:     RelocationCount: 0
-// CHECK-I386:     Type: 0x0
+// CHECK-I386:     Type: Regular (0x0)
 // CHECK-I386:     Attributes [ (0x800004)
 // CHECK-I386:       PureInstructions (0x800000)
 // CHECK-I386:       SomeInstructions (0x4)
@@ -92,7 +92,7 @@ Lt0_x = Lt0_a - Lt0_b
 // CHECK-I386:     Alignment: 0
 // CHECK-I386:     RelocationOffset: 0x190
 // CHECK-I386:     RelocationCount: 9
-// CHECK-I386:     Type: 0x0
+// CHECK-I386:     Type: Regular (0x0)
 // CHECK-I386:     Attributes [ (0x0)
 // CHECK-I386:     ]
 // CHECK-I386:     Reserved1: 0x0
@@ -278,7 +278,7 @@ Lt0_x = Lt0_a - Lt0_b
 // CHECK-X86_64:     Alignment: 0
 // CHECK-X86_64:     RelocationOffset: 0x0
 // CHECK-X86_64:     RelocationCount: 0
-// CHECK-X86_64:     Type: 0x0
+// CHECK-X86_64:     Type: Regular (0x0)
 // CHECK-X86_64:     Attributes [ (0x800004)
 // CHECK-X86_64:       PureInstructions (0x800000)
 // CHECK-X86_64:       SomeInstructions (0x4)
@@ -300,7 +300,7 @@ Lt0_x = Lt0_a - Lt0_b
 // CHECK-X86_64:     Alignment: 0
 // CHECK-X86_64:     RelocationOffset: 0x1BC
 // CHECK-X86_64:     RelocationCount: 9
-// CHECK-X86_64:     Type: 0x0
+// CHECK-X86_64:     Type: Regular (0x0)
 // CHECK-X86_64:     Attributes [ (0x0)
 // CHECK-X86_64:     ]
 // CHECK-X86_64:     Reserved1: 0x0
index 8fd87f4682d74171942ef06eaa9f89950760cd2b..497aad844282ef9a5bb7ad858b1241a21591f595 100644 (file)
@@ -39,7 +39,7 @@ __ZTI3optIbE:
 // CHECK-NEXT:     Alignment: 0
 // CHECK-NEXT:     RelocationOffset: 0x0
 // CHECK-NEXT:     RelocationCount: 0
-// CHECK-NEXT:     Type: 0x0
+// CHECK-NEXT:     Type: Regular (0x0)
 // CHECK-NEXT:     Attributes [ (0x800000)
 // CHECK-NEXT:       PureInstructions (0x800000)
 // CHECK-NEXT:     ]
@@ -58,7 +58,7 @@ __ZTI3optIbE:
 // CHECK-NEXT:     Alignment: 0
 // CHECK-NEXT:     RelocationOffset: 0x19C
 // CHECK-NEXT:     RelocationCount: 1
-// CHECK-NEXT:     Type: 0xB
+// CHECK-NEXT:     Type: Coalesced (0xB)
 // CHECK-NEXT:     Attributes [ (0x0)
 // CHECK-NEXT:     ]
 // CHECK-NEXT:     Reserved1: 0x0
@@ -77,7 +77,7 @@ __ZTI3optIbE:
 // CHECK-NEXT:     Alignment: 0
 // CHECK-NEXT:     RelocationOffset: 0x0
 // CHECK-NEXT:     RelocationCount: 0
-// CHECK-NEXT:     Type: 0xB
+// CHECK-NEXT:     Type: Coalesced (0xB)
 // CHECK-NEXT:     Attributes [ (0x0)
 // CHECK-NEXT:     ]
 // CHECK-NEXT:     Reserved1: 0x0
index ac558acadab8a4fe2a2d187078fbb21852eef6e9..23286a50615fe3a7d13af07ffbb57680f153d5fb 100644 (file)
@@ -182,7 +182,7 @@ f0:
 // CHECK:     Alignment: 4
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x800004)
 // CHECK:       PureInstructions (0x800000)
 // CHECK:       SomeInstructions (0x4)
@@ -224,7 +224,7 @@ f0:
 // CHECK:     Alignment: 4
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
index 24c45d0b1530efc4e368e8483e9bbb5c43bead6c..13b8ed3ca940bdd05d05cee07e15912880e8596e 100644 (file)
@@ -70,7 +70,7 @@
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x800000)
 // CHECK:       PureInstructions (0x800000)
 // CHECK:     ]
@@ -89,7 +89,7 @@
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: ExtReloc (0x2)
+// CHECK:     Type: CStringLiterals (0x2)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
 // CHECK:     Alignment: 2
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x3
+// CHECK:     Type: 4ByteLiterals (0x3)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
 // CHECK:     Alignment: 3
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: SomeInstructions (0x4)
+// CHECK:     Type: 8ByteLiterals (0x4)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
 // CHECK:     Alignment: 4
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0xE
+// CHECK:     Type: 16ByteLiterals (0xE)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x8
+// CHECK:     Type: SymbolStubs (0x8)
 // CHECK:     Attributes [ (0x800000)
 // CHECK:       PureInstructions (0x800000)
 // CHECK:     ]
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x8
+// CHECK:     Type: SymbolStubs (0x8)
 // CHECK:     Attributes [ (0x800000)
 // CHECK:       PureInstructions (0x800000)
 // CHECK:     ]
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
 // CHECK:     Alignment: 2
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x6
+// CHECK:     Type: NonLazySymbolPointers (0x6)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
 // CHECK:     Alignment: 2
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x7
+// CHECK:     Type: LazySymbolPointers (0x7)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
 // CHECK:     Alignment: 2
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x9
+// CHECK:     Type: ModInitFuncPointers (0x9)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
 // CHECK:     Alignment: 2
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0xA
+// CHECK:     Type: ModTermFuncPointers (0xA)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x100000)
 // CHECK:       NoDeadStrip (0x100000)
 // CHECK:     ]
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x100000)
 // CHECK:       NoDeadStrip (0x100000)
 // CHECK:     ]
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x100000)
 // CHECK:       NoDeadStrip (0x100000)
 // CHECK:     ]
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x100000)
 // CHECK:       NoDeadStrip (0x100000)
 // CHECK:     ]
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x100000)
 // CHECK:       NoDeadStrip (0x100000)
 // CHECK:     ]
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x100000)
 // CHECK:       NoDeadStrip (0x100000)
 // CHECK:     ]
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x100000)
 // CHECK:       NoDeadStrip (0x100000)
 // CHECK:     ]
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x100000)
 // CHECK:       NoDeadStrip (0x100000)
 // CHECK:     ]
 // CHECK:     Alignment: 2
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x5
+// CHECK:     Type: LiteralPointers (0x5)
 // CHECK:     Attributes [ (0x100000)
 // CHECK:       NoDeadStrip (0x100000)
 // CHECK:     ]
 // CHECK:     Alignment: 2
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x5
+// CHECK:     Type: LiteralPointers (0x5)
 // CHECK:     Attributes [ (0x100000)
 // CHECK:       NoDeadStrip (0x100000)
 // CHECK:     ]
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x100000)
 // CHECK:       NoDeadStrip (0x100000)
 // CHECK:     ]
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x100000)
 // CHECK:       NoDeadStrip (0x100000)
 // CHECK:     ]
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x100000)
 // CHECK:       NoDeadStrip (0x100000)
 // CHECK:     ]
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x100000)
 // CHECK:       NoDeadStrip (0x100000)
 // CHECK:     ]
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x100000)
 // CHECK:       NoDeadStrip (0x100000)
 // CHECK:     ]
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: ExtReloc (0x2)
+// CHECK:     Type: CStringLiterals (0x2)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x8
+// CHECK:     Type: SymbolStubs (0x8)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
index d866924434d8cf31a7dd4301a7e181fd1a77fd5c..35bc90491a0249105adf3860093d2a946896719c 100644 (file)
@@ -146,7 +146,7 @@ D39:
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x800000)
 // CHECK:       PureInstructions (0x800000)
 // CHECK:     ]
@@ -165,7 +165,7 @@ D39:
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
@@ -183,7 +183,7 @@ D39:
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
@@ -201,7 +201,7 @@ D39:
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: ExtReloc (0x2)
+// CHECK:     Type: CStringLiterals (0x2)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
@@ -219,7 +219,7 @@ D39:
 // CHECK:     Alignment: 2
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x3
+// CHECK:     Type: 4ByteLiterals (0x3)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
@@ -237,7 +237,7 @@ D39:
 // CHECK:     Alignment: 3
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: SomeInstructions (0x4)
+// CHECK:     Type: 8ByteLiterals (0x4)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
@@ -255,7 +255,7 @@ D39:
 // CHECK:     Alignment: 4
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0xE
+// CHECK:     Type: 16ByteLiterals (0xE)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
@@ -273,7 +273,7 @@ D39:
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
@@ -291,7 +291,7 @@ D39:
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
@@ -309,7 +309,7 @@ D39:
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x8
+// CHECK:     Type: SymbolStubs (0x8)
 // CHECK:     Attributes [ (0x800000)
 // CHECK:       PureInstructions (0x800000)
 // CHECK:     ]
@@ -328,7 +328,7 @@ D39:
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x8
+// CHECK:     Type: SymbolStubs (0x8)
 // CHECK:     Attributes [ (0x800000)
 // CHECK:       PureInstructions (0x800000)
 // CHECK:     ]
@@ -347,7 +347,7 @@ D39:
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
@@ -365,7 +365,7 @@ D39:
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
@@ -383,7 +383,7 @@ D39:
 // CHECK:     Alignment: 2
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x6
+// CHECK:     Type: NonLazySymbolPointers (0x6)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
@@ -401,7 +401,7 @@ D39:
 // CHECK:     Alignment: 2
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x7
+// CHECK:     Type: LazySymbolPointers (0x7)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
@@ -419,7 +419,7 @@ D39:
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
@@ -437,7 +437,7 @@ D39:
 // CHECK:     Alignment: 2
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x9
+// CHECK:     Type: ModInitFuncPointers (0x9)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
@@ -455,7 +455,7 @@ D39:
 // CHECK:     Alignment: 2
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0xA
+// CHECK:     Type: ModTermFuncPointers (0xA)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
@@ -473,7 +473,7 @@ D39:
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
@@ -491,7 +491,7 @@ D39:
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x100000)
 // CHECK:       NoDeadStrip (0x100000)
 // CHECK:     ]
@@ -510,7 +510,7 @@ D39:
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x100000)
 // CHECK:       NoDeadStrip (0x100000)
 // CHECK:     ]
@@ -529,7 +529,7 @@ D39:
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x100000)
 // CHECK:       NoDeadStrip (0x100000)
 // CHECK:     ]
@@ -548,7 +548,7 @@ D39:
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x100000)
 // CHECK:       NoDeadStrip (0x100000)
 // CHECK:     ]
@@ -567,7 +567,7 @@ D39:
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x100000)
 // CHECK:       NoDeadStrip (0x100000)
 // CHECK:     ]
@@ -586,7 +586,7 @@ D39:
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x100000)
 // CHECK:       NoDeadStrip (0x100000)
 // CHECK:     ]
@@ -605,7 +605,7 @@ D39:
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x100000)
 // CHECK:       NoDeadStrip (0x100000)
 // CHECK:     ]
@@ -624,7 +624,7 @@ D39:
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x100000)
 // CHECK:       NoDeadStrip (0x100000)
 // CHECK:     ]
@@ -643,7 +643,7 @@ D39:
 // CHECK:     Alignment: 2
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x5
+// CHECK:     Type: LiteralPointers (0x5)
 // CHECK:     Attributes [ (0x100000)
 // CHECK:       NoDeadStrip (0x100000)
 // CHECK:     ]
@@ -662,7 +662,7 @@ D39:
 // CHECK:     Alignment: 2
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x5
+// CHECK:     Type: LiteralPointers (0x5)
 // CHECK:     Attributes [ (0x100000)
 // CHECK:       NoDeadStrip (0x100000)
 // CHECK:     ]
@@ -681,7 +681,7 @@ D39:
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x100000)
 // CHECK:       NoDeadStrip (0x100000)
 // CHECK:     ]
@@ -700,7 +700,7 @@ D39:
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x100000)
 // CHECK:       NoDeadStrip (0x100000)
 // CHECK:     ]
@@ -719,7 +719,7 @@ D39:
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x100000)
 // CHECK:       NoDeadStrip (0x100000)
 // CHECK:     ]
@@ -738,7 +738,7 @@ D39:
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x100000)
 // CHECK:       NoDeadStrip (0x100000)
 // CHECK:     ]
@@ -757,7 +757,7 @@ D39:
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x100000)
 // CHECK:       NoDeadStrip (0x100000)
 // CHECK:     ]
@@ -776,7 +776,7 @@ D39:
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: ExtReloc (0x2)
+// CHECK:     Type: CStringLiterals (0x2)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
@@ -794,7 +794,7 @@ D39:
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x8
+// CHECK:     Type: SymbolStubs (0x8)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
index 262b5c40b5ebdc6cb76465c9ba1a848f63eff0d0..450ba3cd887c365b68af39aac681183d99a2b8ce 100644 (file)
@@ -66,7 +66,7 @@
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x800000)
 // CHECK:       PureInstructions (0x800000)
 // CHECK:     ]
@@ -86,7 +86,7 @@
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: ExtReloc (0x2)
+// CHECK:     Type: CStringLiterals (0x2)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
 // CHECK:     Alignment: 2
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x3
+// CHECK:     Type: 4ByteLiterals (0x3)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
 // CHECK:     Alignment: 3
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: SomeInstructions (0x4)
+// CHECK:     Type: 8ByteLiterals (0x4)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
 // CHECK:     Alignment: 4
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0xE
+// CHECK:     Type: 16ByteLiterals (0xE)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
 // CHECK:     Alignment: 2
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x9
+// CHECK:     Type: ModInitFuncPointers (0x9)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
 // CHECK:     Alignment: 2
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0xA
+// CHECK:     Type: ModTermFuncPointers (0xA)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x100000)
 // CHECK:       NoDeadStrip (0x100000)
 // CHECK:     ]
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x100000)
 // CHECK:       NoDeadStrip (0x100000)
 // CHECK:     ]
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x100000)
 // CHECK:       NoDeadStrip (0x100000)
 // CHECK:     ]
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x100000)
 // CHECK:       NoDeadStrip (0x100000)
 // CHECK:     ]
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x100000)
 // CHECK:       NoDeadStrip (0x100000)
 // CHECK:     ]
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x100000)
 // CHECK:       NoDeadStrip (0x100000)
 // CHECK:     ]
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x100000)
 // CHECK:       NoDeadStrip (0x100000)
 // CHECK:     ]
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x100000)
 // CHECK:       NoDeadStrip (0x100000)
 // CHECK:     ]
 // CHECK:     Alignment: 2
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x5
+// CHECK:     Type: LiteralPointers (0x5)
 // CHECK:     Attributes [ (0x100000)
 // CHECK:       NoDeadStrip (0x100000)
 // CHECK:     ]
 // CHECK:     Alignment: 2
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x5
+// CHECK:     Type: LiteralPointers (0x5)
 // CHECK:     Attributes [ (0x100000)
 // CHECK:       NoDeadStrip (0x100000)
 // CHECK:     ]
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x100000)
 // CHECK:       NoDeadStrip (0x100000)
 // CHECK:     ]
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x100000)
 // CHECK:       NoDeadStrip (0x100000)
 // CHECK:     ]
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x100000)
 // CHECK:       NoDeadStrip (0x100000)
 // CHECK:     ]
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x100000)
 // CHECK:       NoDeadStrip (0x100000)
 // CHECK:     ]
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x100000)
 // CHECK:       NoDeadStrip (0x100000)
 // CHECK:     ]
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: ExtReloc (0x2)
+// CHECK:     Type: CStringLiterals (0x2)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
index f6f115222a5f64e27ae6bae05570653ba9bb34f5..e809aa70f7fb2b63883f05d336f77aacde744616 100644 (file)
@@ -32,7 +32,7 @@
 // CHECK-NEXT:     Alignment: 0
 // CHECK-NEXT:     RelocationOffset: 0x0
 // CHECK-NEXT:     RelocationCount: 0
-// CHECK-NEXT:     Type: 0x0
+// CHECK-NEXT:     Type: Regular (0x0)
 // CHECK-NEXT:     Attributes [ (0x800000)
 // CHECK-NEXT:       PureInstructions (0x800000)
 // CHECK-NEXT:     ]
@@ -52,7 +52,7 @@
 // CHECK-NEXT:     Alignment: 6
 // CHECK-NEXT:     RelocationOffset: 0x0
 // CHECK-NEXT:     RelocationCount: 0
-// CHECK-NEXT:     Type: 0x0
+// CHECK-NEXT:     Type: Regular (0x0)
 // CHECK-NEXT:     Attributes [ (0x0)
 // CHECK-NEXT:     ]
 // CHECK-NEXT:     Reserved1: 0x0
index b03b1458680969c1c33424b2502721ce70811711..5ca6b24ee1e3075c55498508ba2295bedf70f654 100644 (file)
@@ -33,7 +33,7 @@
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x800000)
 // CHECK:       PureInstructions (0x800000)
 // CHECK:     ]
@@ -53,7 +53,7 @@
 // CHECK:     Alignment: 1
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: LocReloc (0x1)
+// CHECK:     Type: ZeroFill (0x1)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
@@ -69,7 +69,7 @@
 // CHECK:     Alignment: 3
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
index f58485024160db14df88d8ed83246d34383829a7..97bde10fa43470e5fd324931f1186433ab37f973 100644 (file)
@@ -30,7 +30,7 @@
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x800000)
 // CHECK:       PureInstructions (0x800000)
 // CHECK:     ]
@@ -50,7 +50,7 @@
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: LocReloc (0x1)
+// CHECK:     Type: ZeroFill (0x1)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
index c5baa752f85f741ac890cde843214704a752d7fe..c8fb80f52904af5e655e180547bdc49b3c1668f9 100644 (file)
@@ -44,7 +44,7 @@
 // CHECK:     Alignment: 0
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x800000)
 // CHECK:       PureInstructions (0x800000)
 // CHECK:     ]
@@ -63,7 +63,7 @@
 // CHECK:     Alignment: 4
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: LocReloc (0x1)
+// CHECK:     Type: ZeroFill (0x1)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
index c3152366c7d33ea46617ecf8fb0340b35c36d8a5..2eb494a038b104af80aa77bba72a79ee86fe5cab 100644 (file)
@@ -32,7 +32,7 @@
 // CHECK:     Alignment: 3
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: 0x0
+// CHECK:     Type: Regular (0x0)
 // CHECK:     Attributes [ (0x800000)
 // CHECK:       PureInstructions (0x800000)
 // CHECK:     ]
@@ -53,7 +53,7 @@
 // CHECK:     Alignment: 3
 // CHECK:     RelocationOffset: 0x0
 // CHECK:     RelocationCount: 0
-// CHECK:     Type: LocReloc (0x1)
+// CHECK:     Type: ZeroFill (0x1)
 // CHECK:     Attributes [ (0x0)
 // CHECK:     ]
 // CHECK:     Reserved1: 0x0
index 61a03e1e4c510f8e1e84bf926a9b209e2485fc7b..b67db658dd5d459f1ce604dadba30dc7d24eaa5c 100644 (file)
@@ -78,7 +78,7 @@ _foo:
 // CHECK:   Alignment: 3
 // CHECK:   RelocationOffset: 0x0
 // CHECK:   RelocationCount: 0
-// CHECK:   Type: 0xB
+// CHECK:   Type: Coalesced (0xB)
 // CHECK:   Attributes [ (0x680000)
 // CHECK:     LiveSupport (0x80000)
 // CHECK:     NoTOC (0x400000)
index fa9df3950a265fb4eece58be4b3fd3ed09bb4e86..6b567952a19152845f74abbda6861fbe2023d0ea 100644 (file)
@@ -39,7 +39,7 @@ CHECK:       Offset: 0
 CHECK:       Alignment: 4
 CHECK:       RelocationOffset: 0x0
 CHECK:       RelocationCount: 0
-CHECK:       Type: 0x0
+CHECK:       Type: Regular (0x0)
 CHECK:       Attributes [ (0x800004)
 CHECK:         PureInstructions (0x800000)
 CHECK:         SomeInstructions (0x4)
@@ -57,7 +57,7 @@ CHECK:       Offset: 0
 CHECK:       Alignment: 2
 CHECK:       RelocationOffset: 0x0
 CHECK:       RelocationCount: 0
-CHECK:       Type: 0x0
+CHECK:       Type: Regular (0x0)
 CHECK:       Attributes [ (0x0)
 CHECK:       ]
 CHECK:       Reserved1: 0x0
@@ -72,7 +72,7 @@ CHECK32:    Offset: 0
 CHECK32:    Alignment: 2
 CHECK32:    RelocationOffset: 0x0
 CHECK32:    RelocationCount: 0
-CHECK32:    Type: 0x6
+CHECK32:    Type: NonLazySymbolPointers (0x6)
 CHECK32:    Attributes [ (0x0)
 CHECK32:    ]
 CHECK32:    Reserved1: 0x0
@@ -88,7 +88,7 @@ CHECK:       Offset: 0
 CHECK:       Alignment: 2
 CHECK:       RelocationOffset: 0x0
 CHECK:       RelocationCount: 0
-CHECK:       Type: 0x0
+CHECK:       Type: Regular (0x0)
 CHECK:       Attributes [ (0x0)
 CHECK:       ]
 CHECK:       Reserved1: 0x0
@@ -104,7 +104,7 @@ CHECK:       Offset: 0
 CHECK:       Alignment: 2
 CHECK:       RelocationOffset: 0x0
 CHECK:       RelocationCount: 0
-CHECK:       Type: LocReloc (0x1)
+CHECK:       Type: ZeroFill (0x1)
 CHECK:       Attributes [ (0x0)
 CHECK:       ]
 CHECK:       Reserved1: 0x0
@@ -120,7 +120,7 @@ CHECK:       Offset: 0
 CHECK:       Alignment: 2
 CHECK:       RelocationOffset: 0x0
 CHECK:       RelocationCount: 0
-CHECK:       Type: LocReloc (0x1)
+CHECK:       Type: ZeroFill (0x1)
 CHECK:       Attributes [ (0x0)
 CHECK:       ]
 CHECK:       Reserved1: 0x0
@@ -135,7 +135,7 @@ CHECK64:     Offset: 8192
 CHECK64:     Alignment: 0
 CHECK64:     RelocationOffset: 0x0
 CHECK64:     RelocationCount: 0
-CHECK64:     Type: 0x0
+CHECK64:     Type: Regular (0x0)
 CHECK64:     Attributes [ (0x0)
 CHECK64:     ]
 CHECK64:     Reserved1: 0x0
@@ -150,7 +150,7 @@ CHECK64:     Offset: 8426
 CHECK64:     Alignment: 0
 CHECK64:     RelocationOffset: 0x0
 CHECK64:     RelocationCount: 0
-CHECK64:     Type: 0x0
+CHECK64:     Type: Regular (0x0)
 CHECK64:     Attributes [ (0x0)
 CHECK64:     ]
 CHECK64:     Reserved1: 0x0
@@ -165,7 +165,7 @@ CHECK64:     Offset: 8553
 CHECK64:     Alignment: 0
 CHECK64:     RelocationOffset: 0x0
 CHECK64:     RelocationCount: 0
-CHECK64:     Type: 0x0
+CHECK64:     Type: Regular (0x0)
 CHECK64:     Attributes [ (0x0)
 CHECK64:     ]
 CHECK64:     Reserved1: 0x0
@@ -180,7 +180,7 @@ CHECK64:     Offset: 8640
 CHECK64:     Alignment: 0
 CHECK64:     RelocationOffset: 0x0
 CHECK64:     RelocationCount: 0
-CHECK64:     Type: 0x0
+CHECK64:     Type: Regular (0x0)
 CHECK64:     Attributes [ (0x0)
 CHECK64:     ]
 CHECK64:     Reserved1: 0x0
@@ -195,7 +195,7 @@ CHECK64:     Offset: 8816
 CHECK64:     Alignment: 0
 CHECK64:     RelocationOffset: 0x0
 CHECK64:     RelocationCount: 0
-CHECK64:     Type: 0x0
+CHECK64:     Type: Regular (0x0)
 CHECK64:     Attributes [ (0x0)
 CHECK64:     ]
 CHECK64:     Reserved1: 0x0
@@ -213,7 +213,7 @@ CHECK64:     Offset: 9260
 CHECK:       Alignment: 0
 CHECK:       RelocationOffset: 0x0
 CHECK:       RelocationCount: 0
-CHECK:       Type: 0x0
+CHECK:       Type: Regular (0x0)
 CHECK:       Attributes [ (0x0)
 CHECK:       ]
 CHECK:       Reserved1: 0x0
@@ -231,7 +231,7 @@ CHECK64:     Offset: 9403
 CHECK:       Alignment: 0
 CHECK:       RelocationOffset: 0x0
 CHECK:       RelocationCount: 0
-CHECK:       Type: 0x0
+CHECK:       Type: Regular (0x0)
 CHECK:       Attributes [ (0x0)
 CHECK:       ]
 CHECK:       Reserved1: 0x0
diff --git a/test/tools/llvm-readobj/macho-sections.test b/test/tools/llvm-readobj/macho-sections.test
new file mode 100644 (file)
index 0000000..37c6567
--- /dev/null
@@ -0,0 +1,314 @@
+## Show that llvm-readobj prints MachO all section types properly.
+# RUN: yaml2obj %s > %t
+# RUN: llvm-readobj --sections %t | FileCheck %s
+
+# CHECK:  Type: Regular (0x0)
+# CHECK:  Type: ZeroFill (0x1)
+# CHECK:  Type: CStringLiterals (0x2)
+# CHECK:  Type: 4ByteLiterals (0x3)
+# CHECK:  Type: 8ByteLiterals (0x4)
+# CHECK:  Type: LiteralPointers (0x5)
+# CHECK:  Type: NonLazySymbolPointers (0x6)
+# CHECK:  Type: LazySymbolPointers (0x7)
+# CHECK:  Type: SymbolStubs (0x8)
+# CHECK:  Type: ModInitFuncPointers (0x9)
+# CHECK:  Type: ModTermFuncPointers (0xA)
+# CHECK:  Type: Coalesced (0xB)
+# CHECK:  Type: GBZeroFill (0xC)
+# CHECK:  Type: Interposing (0xD)
+# CHECK:  Type: 16ByteLiterals (0xE)
+# CHECK:  Type: DTraceDOF (0xF)
+# CHECK:  Type: LazyDylibSymbolPointers (0x10)
+# CHECK:  Type: ThreadLocalRegular (0x11)
+# CHECK:  Type: ThreadLocalZerofill (0x12)
+# CHECK:  Type: ThreadLocalVariables (0x13)
+# CHECK:  Type: ThreadLocalVariablePointers (0x14)
+# CHECK:  Type: ThreadLocalInitFunctionPointers (0x15)
+
+--- !mach-o
+FileHeader:
+  magic:           0xFEEDFACF
+  cputype:         0x01000007
+  cpusubtype:      0x80000003
+  filetype:        0x00000002
+  ncmds:           1
+  sizeofcmds:      1832
+  flags:           0x00002000
+  reserved:        0x00000000
+LoadCommands:
+  - cmd:             LC_SEGMENT_64
+    cmdsize:         1832
+    segname:         ''
+    vmaddr:          0x0000000000001000
+    vmsize:          4096
+    fileoff:         0
+    filesize:        4096
+    maxprot:         7
+    initprot:        7
+    nsects:          22
+    flags:           0
+    Sections:
+      - sectname:        ''
+        segname:         ''
+        addr:            0x000000000000000
+        size:            0
+        offset:          0x00000000
+        align:           0
+        reloff:          0x00000000
+        nreloc:          0
+        flags:           0x00000000
+        reserved1:       0x00000000
+        reserved2:       0x00000000
+        reserved3:       0x00000000
+      - sectname:        ''
+        segname:         ''
+        addr:            0x000000000000000
+        size:            0
+        offset:          0x00000000
+        align:           0
+        reloff:          0x00000000
+        nreloc:          0
+        flags:           0x00000001
+        reserved1:       0x00000000
+        reserved2:       0x00000000
+        reserved3:       0x00000000
+      - sectname:        ''
+        segname:         ''
+        addr:            0x000000000000000
+        size:            0
+        offset:          0x00000000
+        align:           0
+        reloff:          0x00000000
+        nreloc:          0
+        flags:           0x00000002
+        reserved1:       0x00000000
+        reserved2:       0x00000000
+        reserved3:       0x00000000
+      - sectname:        ''
+        segname:         ''
+        addr:            0x000000000000000
+        size:            0
+        offset:          0x00000000
+        align:           0
+        reloff:          0x00000000
+        nreloc:          0
+        flags:           0x00000003
+        reserved1:       0x00000000
+        reserved2:       0x00000000
+        reserved3:       0x00000000
+      - sectname:        ''
+        segname:         ''
+        addr:            0x000000000000000
+        size:            0
+        offset:          0x00000000
+        align:           0
+        reloff:          0x00000000
+        nreloc:          0
+        flags:           0x00000004
+        reserved1:       0x00000000
+        reserved2:       0x00000000
+        reserved3:       0x00000000
+      - sectname:        ''
+        segname:         ''
+        addr:            0x000000000000000
+        size:            0
+        offset:          0x00000000
+        align:           0
+        reloff:          0x00000000
+        nreloc:          0
+        flags:           0x00000005
+        reserved1:       0x00000000
+        reserved2:       0x00000000
+        reserved3:       0x00000000
+      - sectname:        ''
+        segname:         ''
+        addr:            0x000000000000000
+        size:            0
+        offset:          0x00000000
+        align:           0
+        reloff:          0x00000000
+        nreloc:          0
+        flags:           0x00000006
+        reserved1:       0x00000000
+        reserved2:       0x00000000
+        reserved3:       0x00000000
+      - sectname:        ''
+        segname:         ''
+        addr:            0x000000000000000
+        size:            0
+        offset:          0x00000000
+        align:           0
+        reloff:          0x00000000
+        nreloc:          0
+        flags:           0x00000007
+        reserved1:       0x00000000
+        reserved2:       0x00000000
+        reserved3:       0x00000000
+      - sectname:        ''
+        segname:         ''
+        addr:            0x000000000000000
+        size:            0
+        offset:          0x00000000
+        align:           0
+        reloff:          0x00000000
+        nreloc:          0
+        flags:           0x00000008
+        reserved1:       0x00000000
+        reserved2:       0x00000000
+        reserved3:       0x00000000
+      - sectname:        ''
+        segname:         ''
+        addr:            0x000000000000000
+        size:            0
+        offset:          0x00000000
+        align:           0
+        reloff:          0x00000000
+        nreloc:          0
+        flags:           0x00000009
+        reserved1:       0x00000000
+        reserved2:       0x00000000
+        reserved3:       0x00000000
+      - sectname:        ''
+        segname:         ''
+        addr:            0x000000000000000
+        size:            0
+        offset:          0x00000000
+        align:           0
+        reloff:          0x00000000
+        nreloc:          0
+        flags:           0x0000000a
+        reserved1:       0x00000000
+        reserved2:       0x00000000
+        reserved3:       0x00000000
+      - sectname:        ''
+        segname:         ''
+        addr:            0x000000000000000
+        size:            0
+        offset:          0x00000000
+        align:           0
+        reloff:          0x00000000
+        nreloc:          0
+        flags:           0x0000000b
+        reserved1:       0x00000000
+        reserved2:       0x00000000
+        reserved3:       0x00000000
+      - sectname:        ''
+        segname:         ''
+        addr:            0x000000000000000
+        size:            0
+        offset:          0x00000000
+        align:           0
+        reloff:          0x00000000
+        nreloc:          0
+        flags:           0x0000000c
+        reserved1:       0x00000000
+        reserved2:       0x00000000
+        reserved3:       0x00000000
+      - sectname:        ''
+        segname:         ''
+        addr:            0x000000000000000
+        size:            0
+        offset:          0x00000000
+        align:           0
+        reloff:          0x00000000
+        nreloc:          0
+        flags:           0x0000000d
+        reserved1:       0x00000000
+        reserved2:       0x00000000
+        reserved3:       0x00000000
+      - sectname:        ''
+        segname:         ''
+        addr:            0x000000000000000
+        size:            0
+        offset:          0x00000000
+        align:           0
+        reloff:          0x00000000
+        nreloc:          0
+        flags:           0x0000000e
+        reserved1:       0x00000000
+        reserved2:       0x00000000
+        reserved3:       0x00000000
+      - sectname:        ''
+        segname:         ''
+        addr:            0x000000000000000
+        size:            0
+        offset:          0x00000000
+        align:           0
+        reloff:          0x00000000
+        nreloc:          0
+        flags:           0x0000000f
+        reserved1:       0x00000000
+        reserved2:       0x00000000
+        reserved3:       0x00000000
+      - sectname:        ''
+        segname:         ''
+        addr:            0x000000000000000
+        size:            0
+        offset:          0x00000000
+        align:           0
+        reloff:          0x00000000
+        nreloc:          0
+        flags:           0x00000010
+        reserved1:       0x00000000
+        reserved2:       0x00000000
+        reserved3:       0x00000000
+      - sectname:        ''
+        segname:         ''
+        addr:            0x000000000000000
+        size:            0
+        offset:          0x00000000
+        align:           0
+        reloff:          0x00000000
+        nreloc:          0
+        flags:           0x00000011
+        reserved1:       0x00000000
+        reserved2:       0x00000000
+        reserved3:       0x00000000
+      - sectname:        ''
+        segname:         ''
+        addr:            0x000000000000000
+        size:            0
+        offset:          0x00000000
+        align:           0
+        reloff:          0x00000000
+        nreloc:          0
+        flags:           0x00000012
+        reserved1:       0x00000000
+        reserved2:       0x00000000
+        reserved3:       0x00000000
+      - sectname:        ''
+        segname:         ''
+        addr:            0x000000000000000
+        size:            0
+        offset:          0x00000000
+        align:           0
+        reloff:          0x00000000
+        nreloc:          0
+        flags:           0x00000013
+        reserved1:       0x00000000
+        reserved2:       0x00000000
+        reserved3:       0x00000000
+      - sectname:        ''
+        segname:         ''
+        addr:            0x000000000000000
+        size:            0
+        offset:          0x00000000
+        align:           0
+        reloff:          0x00000000
+        nreloc:          0
+        flags:           0x00000014
+        reserved1:       0x00000000
+        reserved2:       0x00000000
+        reserved3:       0x00000000
+      - sectname:        ''
+        segname:         ''
+        addr:            0x000000000000000
+        size:            0
+        offset:          0x00000000
+        align:           0
+        reloff:          0x00000000
+        nreloc:          0
+        flags:           0x00000015
+        reserved1:       0x00000000
+        reserved2:       0x00000000
+        reserved3:       0x00000000
index dc03ab367b14ea1e1796a9ae0a78f97115a5a9c0..d91a43bd7a8f1813959475ebeaa112e69b250408 100644 (file)
@@ -66,7 +66,7 @@ MULTISECTIONS:     Offset: 3936
 MULTISECTIONS:     Alignment: 4
 MULTISECTIONS:     RelocationOffset: 0x0
 MULTISECTIONS:     RelocationCount: 0
-MULTISECTIONS:     Type: 0x0
+MULTISECTIONS:     Type: Regular (0x0)
 MULTISECTIONS:     Attributes [ (0x800004)
 MULTISECTIONS:       PureInstructions (0x800000)
 MULTISECTIONS:       SomeInstructions (0x4)
@@ -84,7 +84,7 @@ MULTISECTIONS:     Offset: 3954
 MULTISECTIONS:     Alignment: 0
 MULTISECTIONS:     RelocationOffset: 0x0
 MULTISECTIONS:     RelocationCount: 0
-MULTISECTIONS:     Type: 0x0
+MULTISECTIONS:     Type: Regular (0x0)
 MULTISECTIONS:     Attributes [ (0x0)
 MULTISECTIONS:     ]
 MULTISECTIONS:     Reserved1: 0x0
@@ -100,7 +100,7 @@ MULTISECTIONS:     Offset: 4032
 MULTISECTIONS:     Alignment: 3
 MULTISECTIONS:     RelocationOffset: 0x0
 MULTISECTIONS:     RelocationCount: 0
-MULTISECTIONS:     Type: 0x0
+MULTISECTIONS:     Type: Regular (0x0)
 MULTISECTIONS:     Attributes [ (0x0)
 MULTISECTIONS:     ]
 MULTISECTIONS:     Reserved1: 0x0
@@ -122,7 +122,7 @@ MULTISECTIONS:     Offset: 4000
 MULTISECTIONS:     Alignment: 4
 MULTISECTIONS:     RelocationOffset: 0x0
 MULTISECTIONS:     RelocationCount: 0
-MULTISECTIONS:     Type: 0x0
+MULTISECTIONS:     Type: Regular (0x0)
 MULTISECTIONS:     Attributes [ (0x800004)
 MULTISECTIONS:       PureInstructions (0x800000)
 MULTISECTIONS:       SomeInstructions (0x4)
@@ -140,7 +140,7 @@ MULTISECTIONS:     Offset: 4021
 MULTISECTIONS:     Alignment: 0
 MULTISECTIONS:     RelocationOffset: 0x0
 MULTISECTIONS:     RelocationCount: 0
-MULTISECTIONS:     Type: 0x0
+MULTISECTIONS:     Type: Regular (0x0)
 MULTISECTIONS:     Attributes [ (0x0)
 MULTISECTIONS:     ]
 MULTISECTIONS:     Reserved1: 0x0
@@ -198,7 +198,7 @@ MULTISECTIONS-ARCHIVE:     Offset: 528
 MULTISECTIONS-ARCHIVE:     Alignment: 4
 MULTISECTIONS-ARCHIVE:     RelocationOffset: 0x2B8
 MULTISECTIONS-ARCHIVE:     RelocationCount: 2
-MULTISECTIONS-ARCHIVE:     Type: 0x0
+MULTISECTIONS-ARCHIVE:     Type: Regular (0x0)
 MULTISECTIONS-ARCHIVE:     Attributes [ (0x800004)
 MULTISECTIONS-ARCHIVE:       PureInstructions (0x800000)
 MULTISECTIONS-ARCHIVE:       SomeInstructions (0x4)
@@ -216,7 +216,7 @@ MULTISECTIONS-ARCHIVE:     Offset: 587
 MULTISECTIONS-ARCHIVE:     Alignment: 0
 MULTISECTIONS-ARCHIVE:     RelocationOffset: 0x0
 MULTISECTIONS-ARCHIVE:     RelocationCount: 0
-MULTISECTIONS-ARCHIVE:     Type: ExtReloc (0x2)
+MULTISECTIONS-ARCHIVE:     Type: CStringLiterals (0x2)
 MULTISECTIONS-ARCHIVE:     Attributes [ (0x0)
 MULTISECTIONS-ARCHIVE:     ]
 MULTISECTIONS-ARCHIVE:     Reserved1: 0x0
@@ -232,7 +232,7 @@ MULTISECTIONS-ARCHIVE:     Offset: 600
 MULTISECTIONS-ARCHIVE:     Alignment: 3
 MULTISECTIONS-ARCHIVE:     RelocationOffset: 0x2C8
 MULTISECTIONS-ARCHIVE:     RelocationCount: 1
-MULTISECTIONS-ARCHIVE:     Type: 0x0
+MULTISECTIONS-ARCHIVE:     Type: Regular (0x0)
 MULTISECTIONS-ARCHIVE:     Attributes [ (0x20000)
 MULTISECTIONS-ARCHIVE:       Debug (0x20000)
 MULTISECTIONS-ARCHIVE:     ]
@@ -249,7 +249,7 @@ MULTISECTIONS-ARCHIVE:     Offset: 632
 MULTISECTIONS-ARCHIVE:     Alignment: 3
 MULTISECTIONS-ARCHIVE:     RelocationOffset: 0x0
 MULTISECTIONS-ARCHIVE:     RelocationCount: 0
-MULTISECTIONS-ARCHIVE:     Type: 0xB
+MULTISECTIONS-ARCHIVE:     Type: Coalesced (0xB)
 MULTISECTIONS-ARCHIVE:     Attributes [ (0x680000)
 MULTISECTIONS-ARCHIVE:       LiveSupport (0x80000)
 MULTISECTIONS-ARCHIVE:       NoTOC (0x400000)
@@ -275,7 +275,7 @@ MULTISECTIONS-ARCHIVE:     Offset: 324
 MULTISECTIONS-ARCHIVE:     Alignment: 4
 MULTISECTIONS-ARCHIVE:     RelocationOffset: 0x0
 MULTISECTIONS-ARCHIVE:     RelocationCount: 0
-MULTISECTIONS-ARCHIVE:     Type: 0x0
+MULTISECTIONS-ARCHIVE:     Type: Regular (0x0)
 MULTISECTIONS-ARCHIVE:     Attributes [ (0x800004)
 MULTISECTIONS-ARCHIVE:       PureInstructions (0x800000)
 MULTISECTIONS-ARCHIVE:       SomeInstructions (0x4)
@@ -293,7 +293,7 @@ MULTISECTIONS-ARCHIVE:     Offset: 332
 MULTISECTIONS-ARCHIVE:     Alignment: 2
 MULTISECTIONS-ARCHIVE:     RelocationOffset: 0x0
 MULTISECTIONS-ARCHIVE:     RelocationCount: 0
-MULTISECTIONS-ARCHIVE:     Type: 0x0
+MULTISECTIONS-ARCHIVE:     Type: Regular (0x0)
 MULTISECTIONS-ARCHIVE:     Attributes [ (0x0)
 MULTISECTIONS-ARCHIVE:     ]
 MULTISECTIONS-ARCHIVE:     Reserved1: 0x0
index 2691c221112cf49c5883bb8f9a241945f85e6737..f64294c2ed35f238f99c77b48b88bf597918b3df 100644 (file)
@@ -186,7 +186,7 @@ MACHO-I386-NEXT:     Offset: 324
 MACHO-I386-NEXT:     Alignment: 4
 MACHO-I386-NEXT:     RelocationOffset: 0x174
 MACHO-I386-NEXT:     RelocationCount: 4
-MACHO-I386-NEXT:     Type: 0x0
+MACHO-I386-NEXT:     Type: Regular (0x0)
 MACHO-I386-NEXT:     Attributes [ (0x800004)
 MACHO-I386-NEXT:       PureInstructions (0x800000)
 MACHO-I386-NEXT:       SomeInstructions (0x4)
@@ -230,7 +230,7 @@ MACHO-X86-64-NEXT:    Offset: 368
 MACHO-X86-64-NEXT:    Alignment: 4
 MACHO-X86-64-NEXT:    RelocationOffset: 0x194
 MACHO-X86-64-NEXT:    RelocationCount: 3
-MACHO-X86-64-NEXT:    Type: 0x0
+MACHO-X86-64-NEXT:    Type: Regular (0x0)
 MACHO-X86-64-NEXT:    Attributes [ (0x800004)
 MACHO-X86-64-NEXT:      PureInstructions (0x800000)
 MACHO-X86-64-NEXT:      SomeInstructions (0x4)
@@ -270,7 +270,7 @@ MACHO-X86-64-NEXT:    Offset: 390
 MACHO-X86-64-NEXT:    Alignment: 0
 MACHO-X86-64-NEXT:    RelocationOffset: 0x0
 MACHO-X86-64-NEXT:    RelocationCount: 0
-MACHO-X86-64-NEXT:    Type: ExtReloc (0x2)
+MACHO-X86-64-NEXT:    Type: CStringLiterals (0x2)
 MACHO-X86-64-NEXT:    Attributes [ (0x0)
 MACHO-X86-64-NEXT:    ]
 MACHO-X86-64-NEXT:    Reserved1: 0x0
@@ -306,7 +306,7 @@ MACHO-PPC-NEXT:     Offset: 528
 MACHO-PPC-NEXT:     Alignment: 2
 MACHO-PPC-NEXT:     RelocationOffset: 0x27C
 MACHO-PPC-NEXT:     RelocationCount: 5
-MACHO-PPC-NEXT:     Type: 0x0
+MACHO-PPC-NEXT:     Type: Regular (0x0)
 MACHO-PPC-NEXT:     Attributes [ (0x800004)
 MACHO-PPC-NEXT:       PureInstructions (0x800000)
 MACHO-PPC-NEXT:       SomeInstructions (0x4)
@@ -379,7 +379,7 @@ MACHO-PPC-NEXT:     Offset: 592
 MACHO-PPC-NEXT:     Alignment: 5
 MACHO-PPC-NEXT:     RelocationOffset: 0x2A4
 MACHO-PPC-NEXT:     RelocationCount: 4
-MACHO-PPC-NEXT:     Type: 0x8
+MACHO-PPC-NEXT:     Type: SymbolStubs (0x8)
 MACHO-PPC-NEXT:     Attributes [ (0x800004)
 MACHO-PPC-NEXT:       PureInstructions (0x800000)
 MACHO-PPC-NEXT:       SomeInstructions (0x4)
@@ -433,7 +433,7 @@ MACHO-PPC-NEXT:     Offset: 624
 MACHO-PPC-NEXT:     Alignment: 2
 MACHO-PPC-NEXT:     RelocationOffset: 0x0
 MACHO-PPC-NEXT:     RelocationCount: 0
-MACHO-PPC-NEXT:     Type: 0x0
+MACHO-PPC-NEXT:     Type: Regular (0x0)
 MACHO-PPC-NEXT:     Attributes [ (0x0)
 MACHO-PPC-NEXT:     ]
 MACHO-PPC-NEXT:     Reserved1: 0x0
@@ -466,7 +466,7 @@ MACHO-PPC-NEXT:     Offset: 628
 MACHO-PPC-NEXT:     Alignment: 2
 MACHO-PPC-NEXT:     RelocationOffset: 0x0
 MACHO-PPC-NEXT:     RelocationCount: 0
-MACHO-PPC-NEXT:     Type: 0x6
+MACHO-PPC-NEXT:     Type: NonLazySymbolPointers (0x6)
 MACHO-PPC-NEXT:     Attributes [ (0x0)
 MACHO-PPC-NEXT:     ]
 MACHO-PPC-NEXT:     Reserved1: 0x1
@@ -489,7 +489,7 @@ MACHO-PPC-NEXT:     Offset: 632
 MACHO-PPC-NEXT:     Alignment: 2
 MACHO-PPC-NEXT:     RelocationOffset: 0x2C4
 MACHO-PPC-NEXT:     RelocationCount: 1
-MACHO-PPC-NEXT:     Type: 0x7
+MACHO-PPC-NEXT:     Type: LazySymbolPointers (0x7)
 MACHO-PPC-NEXT:     Attributes [ (0x0)
 MACHO-PPC-NEXT:     ]
 MACHO-PPC-NEXT:     Reserved1: 0x2
@@ -523,7 +523,7 @@ MACHO-PPC64-NEXT:     Offset: 608
 MACHO-PPC64-NEXT:     Alignment: 2
 MACHO-PPC64-NEXT:     RelocationOffset: 0x2D4
 MACHO-PPC64-NEXT:     RelocationCount: 5
-MACHO-PPC64-NEXT:     Type: 0x0
+MACHO-PPC64-NEXT:     Type: Regular (0x0)
 MACHO-PPC64-NEXT:     Attributes [ (0x800004)
 MACHO-PPC64-NEXT:       PureInstructions (0x800000)
 MACHO-PPC64-NEXT:       SomeInstructions (0x4)
@@ -597,7 +597,7 @@ MACHO-PPC64-NEXT:     Offset: 672
 MACHO-PPC64-NEXT:     Alignment: 5
 MACHO-PPC64-NEXT:     RelocationOffset: 0x2FC
 MACHO-PPC64-NEXT:     RelocationCount: 4
-MACHO-PPC64-NEXT:     Type: 0x8
+MACHO-PPC64-NEXT:     Type: SymbolStubs (0x8)
 MACHO-PPC64-NEXT:     Attributes [ (0x800004)
 MACHO-PPC64-NEXT:       PureInstructions (0x800000)
 MACHO-PPC64-NEXT:       SomeInstructions (0x4)
@@ -652,7 +652,7 @@ MACHO-PPC64-NEXT:     Offset: 704
 MACHO-PPC64-NEXT:     Alignment: 2
 MACHO-PPC64-NEXT:     RelocationOffset: 0x0
 MACHO-PPC64-NEXT:     RelocationCount: 0
-MACHO-PPC64-NEXT:     Type: 0x0
+MACHO-PPC64-NEXT:     Type: Regular (0x0)
 MACHO-PPC64-NEXT:     Attributes [ (0x0)
 MACHO-PPC64-NEXT:     ]
 MACHO-PPC64-NEXT:     Reserved1: 0x0
@@ -686,7 +686,7 @@ MACHO-PPC64-NEXT:     Offset: 708
 MACHO-PPC64-NEXT:     Alignment: 2
 MACHO-PPC64-NEXT:     RelocationOffset: 0x0
 MACHO-PPC64-NEXT:     RelocationCount: 0
-MACHO-PPC64-NEXT:     Type: 0x6
+MACHO-PPC64-NEXT:     Type: NonLazySymbolPointers (0x6)
 MACHO-PPC64-NEXT:     Attributes [ (0x0)
 MACHO-PPC64-NEXT:     ]
 MACHO-PPC64-NEXT:     Reserved1: 0x1
@@ -710,7 +710,7 @@ MACHO-PPC64-NEXT:     Offset: 716
 MACHO-PPC64-NEXT:     Alignment: 2
 MACHO-PPC64-NEXT:     RelocationOffset: 0x31C
 MACHO-PPC64-NEXT:     RelocationCount: 1
-MACHO-PPC64-NEXT:     Type: 0x7
+MACHO-PPC64-NEXT:     Type: LazySymbolPointers (0x7)
 MACHO-PPC64-NEXT:     Attributes [ (0x0)
 MACHO-PPC64-NEXT:     ]
 MACHO-PPC64-NEXT:     Reserved1: 0x2
@@ -744,7 +744,7 @@ MACHO-ARM-NEXT:     Offset: 664
 MACHO-ARM-NEXT:     Alignment: 2
 MACHO-ARM-NEXT:     RelocationOffset: 0x2E0
 MACHO-ARM-NEXT:     RelocationCount: 9
-MACHO-ARM-NEXT:     Type: 0x0
+MACHO-ARM-NEXT:     Type: Regular (0x0)
 MACHO-ARM-NEXT:     Attributes [ (0x800004)
 MACHO-ARM-NEXT:       PureInstructions (0x800000)
 MACHO-ARM-NEXT:       SomeInstructions (0x4)
@@ -855,7 +855,7 @@ MACHO-ARM-NEXT:     Offset: 724
 MACHO-ARM-NEXT:     Alignment: 0
 MACHO-ARM-NEXT:     RelocationOffset: 0x0
 MACHO-ARM-NEXT:     RelocationCount: 0
-MACHO-ARM-NEXT:     Type: 0xB
+MACHO-ARM-NEXT:     Type: Coalesced (0xB)
 MACHO-ARM-NEXT:     Attributes [ (0x800000)
 MACHO-ARM-NEXT:       PureInstructions (0x800000)
 MACHO-ARM-NEXT:     ]
@@ -878,7 +878,7 @@ MACHO-ARM-NEXT:     Offset: 724
 MACHO-ARM-NEXT:     Alignment: 0
 MACHO-ARM-NEXT:     RelocationOffset: 0x0
 MACHO-ARM-NEXT:     RelocationCount: 0
-MACHO-ARM-NEXT:     Type: 0xB
+MACHO-ARM-NEXT:     Type: Coalesced (0xB)
 MACHO-ARM-NEXT:     Attributes [ (0x0)
 MACHO-ARM-NEXT:     ]
 MACHO-ARM-NEXT:     Reserved1: 0x0
@@ -900,7 +900,7 @@ MACHO-ARM-NEXT:     Offset: 724
 MACHO-ARM-NEXT:     Alignment: 0
 MACHO-ARM-NEXT:     RelocationOffset: 0x0
 MACHO-ARM-NEXT:     RelocationCount: 0
-MACHO-ARM-NEXT:     Type: 0x8
+MACHO-ARM-NEXT:     Type: SymbolStubs (0x8)
 MACHO-ARM-NEXT:     Attributes [ (0x0)
 MACHO-ARM-NEXT:     ]
 MACHO-ARM-NEXT:     Reserved1: 0x0
@@ -922,7 +922,7 @@ MACHO-ARM-NEXT:     Offset: 724
 MACHO-ARM-NEXT:     Alignment: 0
 MACHO-ARM-NEXT:     RelocationOffset: 0x0
 MACHO-ARM-NEXT:     RelocationCount: 0
-MACHO-ARM-NEXT:     Type: 0x0
+MACHO-ARM-NEXT:     Type: Regular (0x0)
 MACHO-ARM-NEXT:     Attributes [ (0x800000)
 MACHO-ARM-NEXT:       PureInstructions (0x800000)
 MACHO-ARM-NEXT:     ]
@@ -945,7 +945,7 @@ MACHO-ARM-NEXT:     Offset: 724
 MACHO-ARM-NEXT:     Alignment: 2
 MACHO-ARM-NEXT:     RelocationOffset: 0x0
 MACHO-ARM-NEXT:     RelocationCount: 0
-MACHO-ARM-NEXT:     Type: 0x0
+MACHO-ARM-NEXT:     Type: Regular (0x0)
 MACHO-ARM-NEXT:     Attributes [ (0x0)
 MACHO-ARM-NEXT:     ]
 MACHO-ARM-NEXT:     Reserved1: 0x0
@@ -978,7 +978,7 @@ MACHO-ARM-NEXT:     Offset: 728
 MACHO-ARM-NEXT:     Alignment: 2
 MACHO-ARM-NEXT:     RelocationOffset: 0x0
 MACHO-ARM-NEXT:     RelocationCount: 0
-MACHO-ARM-NEXT:     Type: 0x6
+MACHO-ARM-NEXT:     Type: NonLazySymbolPointers (0x6)
 MACHO-ARM-NEXT:     Attributes [ (0x0)
 MACHO-ARM-NEXT:     ]
 MACHO-ARM-NEXT:     Reserved1: 0x0
index 5eab22be1a3dfafbf76076bfb5459a8ad61df153..1ad4e98b2dec7ce086ade988f48f285182670685 100644 (file)
@@ -137,7 +137,7 @@ MACHO-I386-NEXT:     Offset: 324
 MACHO-I386-NEXT:     Alignment: 4
 MACHO-I386-NEXT:     RelocationOffset: 0x174
 MACHO-I386-NEXT:     RelocationCount: 4
-MACHO-I386-NEXT:     Type: 0x0
+MACHO-I386-NEXT:     Type: Regular (0x0)
 MACHO-I386-NEXT:     Attributes [ (0x800004)
 MACHO-I386-NEXT:       PureInstructions (0x800000)
 MACHO-I386-NEXT:       SomeInstructions (0x4)
@@ -155,7 +155,7 @@ MACHO-I386-NEXT:     Offset: 358
 MACHO-I386-NEXT:     Alignment: 0
 MACHO-I386-NEXT:     RelocationOffset: 0x0
 MACHO-I386-NEXT:     RelocationCount: 0
-MACHO-I386-NEXT:     Type: ExtReloc (0x2)
+MACHO-I386-NEXT:     Type: CStringLiterals (0x2)
 MACHO-I386-NEXT:     Attributes [ (0x0)
 MACHO-I386-NEXT:     ]
 MACHO-I386-NEXT:     Reserved1: 0x0
@@ -174,7 +174,7 @@ MACHO-X86-64-NEXT:    Offset: 368
 MACHO-X86-64-NEXT:    Alignment: 4
 MACHO-X86-64-NEXT:    RelocationOffset: 0x194
 MACHO-X86-64-NEXT:    RelocationCount: 3
-MACHO-X86-64-NEXT:    Type: 0x0
+MACHO-X86-64-NEXT:    Type: Regular (0x0)
 MACHO-X86-64-NEXT:    Attributes [ (0x800004)
 MACHO-X86-64-NEXT:      PureInstructions (0x800000)
 MACHO-X86-64-NEXT:      SomeInstructions (0x4)
@@ -193,7 +193,7 @@ MACHO-X86-64-NEXT:    Offset: 390
 MACHO-X86-64-NEXT:    Alignment: 0
 MACHO-X86-64-NEXT:    RelocationOffset: 0x0
 MACHO-X86-64-NEXT:    RelocationCount: 0
-MACHO-X86-64-NEXT:    Type: ExtReloc (0x2)
+MACHO-X86-64-NEXT:    Type: CStringLiterals (0x2)
 MACHO-X86-64-NEXT:    Attributes [ (0x0)
 MACHO-X86-64-NEXT:    ]
 MACHO-X86-64-NEXT:    Reserved1: 0x0
@@ -213,7 +213,7 @@ MACHO-PPC-NEXT:     Offset: 528
 MACHO-PPC-NEXT:     Alignment: 2
 MACHO-PPC-NEXT:     RelocationOffset: 0x27C
 MACHO-PPC-NEXT:     RelocationCount: 5
-MACHO-PPC-NEXT:     Type: 0x0
+MACHO-PPC-NEXT:     Type: Regular (0x0)
 MACHO-PPC-NEXT:     Attributes [ (0x800004)
 MACHO-PPC-NEXT:       PureInstructions (0x800000)
 MACHO-PPC-NEXT:       SomeInstructions (0x4)
@@ -231,7 +231,7 @@ MACHO-PPC-NEXT:     Offset: 592
 MACHO-PPC-NEXT:     Alignment: 5
 MACHO-PPC-NEXT:     RelocationOffset: 0x2A4
 MACHO-PPC-NEXT:     RelocationCount: 4
-MACHO-PPC-NEXT:     Type: 0x8
+MACHO-PPC-NEXT:     Type: SymbolStubs (0x8)
 MACHO-PPC-NEXT:     Attributes [ (0x800004)
 MACHO-PPC-NEXT:       PureInstructions (0x800000)
 MACHO-PPC-NEXT:       SomeInstructions (0x4)
@@ -249,7 +249,7 @@ MACHO-PPC-NEXT:     Offset: 624
 MACHO-PPC-NEXT:     Alignment: 2
 MACHO-PPC-NEXT:     RelocationOffset: 0x0
 MACHO-PPC-NEXT:     RelocationCount: 0
-MACHO-PPC-NEXT:     Type: 0x0
+MACHO-PPC-NEXT:     Type: Regular (0x0)
 MACHO-PPC-NEXT:     Attributes [ (0x0)
 MACHO-PPC-NEXT:     ]
 MACHO-PPC-NEXT:     Reserved1: 0x0
@@ -265,7 +265,7 @@ MACHO-PPC-NEXT:     Offset: 628
 MACHO-PPC-NEXT:     Alignment: 2
 MACHO-PPC-NEXT:     RelocationOffset: 0x0
 MACHO-PPC-NEXT:     RelocationCount: 0
-MACHO-PPC-NEXT:     Type: 0x6
+MACHO-PPC-NEXT:     Type: NonLazySymbolPointers (0x6)
 MACHO-PPC-NEXT:     Attributes [ (0x0)
 MACHO-PPC-NEXT:     ]
 MACHO-PPC-NEXT:     Reserved1: 0x1
@@ -281,7 +281,7 @@ MACHO-PPC-NEXT:     Offset: 632
 MACHO-PPC-NEXT:     Alignment: 2
 MACHO-PPC-NEXT:     RelocationOffset: 0x2C4
 MACHO-PPC-NEXT:     RelocationCount: 1
-MACHO-PPC-NEXT:     Type: 0x7
+MACHO-PPC-NEXT:     Type: LazySymbolPointers (0x7)
 MACHO-PPC-NEXT:     Attributes [ (0x0)
 MACHO-PPC-NEXT:     ]
 MACHO-PPC-NEXT:     Reserved1: 0x2
@@ -300,7 +300,7 @@ MACHO-PPC64-NEXT:     Offset: 608
 MACHO-PPC64-NEXT:     Alignment: 2
 MACHO-PPC64-NEXT:     RelocationOffset: 0x2D4
 MACHO-PPC64-NEXT:     RelocationCount: 5
-MACHO-PPC64-NEXT:     Type: 0x0
+MACHO-PPC64-NEXT:     Type: Regular (0x0)
 MACHO-PPC64-NEXT:     Attributes [ (0x800004)
 MACHO-PPC64-NEXT:       PureInstructions (0x800000)
 MACHO-PPC64-NEXT:       SomeInstructions (0x4)
@@ -319,7 +319,7 @@ MACHO-PPC64-NEXT:     Offset: 672
 MACHO-PPC64-NEXT:     Alignment: 5
 MACHO-PPC64-NEXT:     RelocationOffset: 0x2FC
 MACHO-PPC64-NEXT:     RelocationCount: 4
-MACHO-PPC64-NEXT:     Type: 0x8
+MACHO-PPC64-NEXT:     Type: SymbolStubs (0x8)
 MACHO-PPC64-NEXT:     Attributes [ (0x800004)
 MACHO-PPC64-NEXT:       PureInstructions (0x800000)
 MACHO-PPC64-NEXT:       SomeInstructions (0x4)
@@ -338,7 +338,7 @@ MACHO-PPC64-NEXT:     Offset: 704
 MACHO-PPC64-NEXT:     Alignment: 2
 MACHO-PPC64-NEXT:     RelocationOffset: 0x0
 MACHO-PPC64-NEXT:     RelocationCount: 0
-MACHO-PPC64-NEXT:     Type: 0x0
+MACHO-PPC64-NEXT:     Type: Regular (0x0)
 MACHO-PPC64-NEXT:     Attributes [ (0x0)
 MACHO-PPC64-NEXT:     ]
 MACHO-PPC64-NEXT:     Reserved1: 0x0
@@ -355,7 +355,7 @@ MACHO-PPC64-NEXT:     Offset: 708
 MACHO-PPC64-NEXT:     Alignment: 2
 MACHO-PPC64-NEXT:     RelocationOffset: 0x0
 MACHO-PPC64-NEXT:     RelocationCount: 0
-MACHO-PPC64-NEXT:     Type: 0x6
+MACHO-PPC64-NEXT:     Type: NonLazySymbolPointers (0x6)
 MACHO-PPC64-NEXT:     Attributes [ (0x0)
 MACHO-PPC64-NEXT:     ]
 MACHO-PPC64-NEXT:     Reserved1: 0x1
@@ -372,7 +372,7 @@ MACHO-PPC64-NEXT:     Offset: 716
 MACHO-PPC64-NEXT:     Alignment: 2
 MACHO-PPC64-NEXT:     RelocationOffset: 0x31C
 MACHO-PPC64-NEXT:     RelocationCount: 1
-MACHO-PPC64-NEXT:     Type: 0x7
+MACHO-PPC64-NEXT:     Type: LazySymbolPointers (0x7)
 MACHO-PPC64-NEXT:     Attributes [ (0x0)
 MACHO-PPC64-NEXT:     ]
 MACHO-PPC64-NEXT:     Reserved1: 0x2
@@ -392,7 +392,7 @@ MACHO-ARM-NEXT:    Offset: 664
 MACHO-ARM-NEXT:    Alignment: 2
 MACHO-ARM-NEXT:    RelocationOffset: 0x2E0
 MACHO-ARM-NEXT:    RelocationCount: 9
-MACHO-ARM-NEXT:    Type: 0x0
+MACHO-ARM-NEXT:    Type: Regular (0x0)
 MACHO-ARM-NEXT:    Attributes [ (0x800004)
 MACHO-ARM-NEXT:      PureInstructions (0x800000)
 MACHO-ARM-NEXT:      SomeInstructions (0x4)
@@ -410,7 +410,7 @@ MACHO-ARM-NEXT:    Offset: 724
 MACHO-ARM-NEXT:    Alignment: 0
 MACHO-ARM-NEXT:    RelocationOffset: 0x0
 MACHO-ARM-NEXT:    RelocationCount: 0
-MACHO-ARM-NEXT:    Type: 0xB
+MACHO-ARM-NEXT:    Type: Coalesced (0xB)
 MACHO-ARM-NEXT:    Attributes [ (0x800000)
 MACHO-ARM-NEXT:      PureInstructions (0x800000)
 MACHO-ARM-NEXT:    ]
@@ -427,7 +427,7 @@ MACHO-ARM-NEXT:    Offset: 724
 MACHO-ARM-NEXT:    Alignment: 0
 MACHO-ARM-NEXT:    RelocationOffset: 0x0
 MACHO-ARM-NEXT:    RelocationCount: 0
-MACHO-ARM-NEXT:    Type: 0xB
+MACHO-ARM-NEXT:    Type: Coalesced (0xB)
 MACHO-ARM-NEXT:    Attributes [ (0x0)
 MACHO-ARM-NEXT:    ]
 MACHO-ARM-NEXT:    Reserved1: 0x0
@@ -443,7 +443,7 @@ MACHO-ARM-NEXT:    Offset: 724
 MACHO-ARM-NEXT:    Alignment: 0
 MACHO-ARM-NEXT:    RelocationOffset: 0x0
 MACHO-ARM-NEXT:    RelocationCount: 0
-MACHO-ARM-NEXT:    Type: 0x8
+MACHO-ARM-NEXT:    Type: SymbolStubs (0x8)
 MACHO-ARM-NEXT:    Attributes [ (0x0)
 MACHO-ARM-NEXT:    ]
 MACHO-ARM-NEXT:    Reserved1: 0x0
@@ -459,7 +459,7 @@ MACHO-ARM-NEXT:    Offset: 724
 MACHO-ARM-NEXT:    Alignment: 0
 MACHO-ARM-NEXT:    RelocationOffset: 0x0
 MACHO-ARM-NEXT:    RelocationCount: 0
-MACHO-ARM-NEXT:    Type: 0x0
+MACHO-ARM-NEXT:    Type: Regular (0x0)
 MACHO-ARM-NEXT:    Attributes [ (0x800000)
 MACHO-ARM-NEXT:      PureInstructions (0x800000)
 MACHO-ARM-NEXT:    ]
@@ -476,7 +476,7 @@ MACHO-ARM-NEXT:    Offset: 724
 MACHO-ARM-NEXT:    Alignment: 2
 MACHO-ARM-NEXT:    RelocationOffset: 0x0
 MACHO-ARM-NEXT:    RelocationCount: 0
-MACHO-ARM-NEXT:    Type: 0x0
+MACHO-ARM-NEXT:    Type: Regular (0x0)
 MACHO-ARM-NEXT:    Attributes [ (0x0)
 MACHO-ARM-NEXT:    ]
 MACHO-ARM-NEXT:    Reserved1: 0x0
@@ -492,7 +492,7 @@ MACHO-ARM-NEXT:    Offset: 728
 MACHO-ARM-NEXT:    Alignment: 2
 MACHO-ARM-NEXT:    RelocationOffset: 0x0
 MACHO-ARM-NEXT:    RelocationCount: 0
-MACHO-ARM-NEXT:    Type: 0x6
+MACHO-ARM-NEXT:    Type: NonLazySymbolPointers (0x6)
 MACHO-ARM-NEXT:    Attributes [ (0x0)
 MACHO-ARM-NEXT:    ]
 MACHO-ARM-NEXT:    Reserved1: 0x0
index d1c88c2a90e68d989952b863ad3f6333c1e1b476..84f6740665017d27fda7c2bb658548736a481c5b 100644 (file)
@@ -214,6 +214,31 @@ static const EnumEntry<uint32_t> MachOHeaderFlags[] = {
   LLVM_READOBJ_ENUM_ENT(MachO, MH_APP_EXTENSION_SAFE),
 };
 
+static const EnumEntry<unsigned> MachOSectionTypes[] = {
+  { "Regular"                        , MachO::S_REGULAR },
+  { "ZeroFill"                       , MachO::S_ZEROFILL },
+  { "CStringLiterals"                , MachO::S_CSTRING_LITERALS },
+  { "4ByteLiterals"                  , MachO::S_4BYTE_LITERALS },
+  { "8ByteLiterals"                  , MachO::S_8BYTE_LITERALS },
+  { "LiteralPointers"                , MachO::S_LITERAL_POINTERS },
+  { "NonLazySymbolPointers"          , MachO::S_NON_LAZY_SYMBOL_POINTERS },
+  { "LazySymbolPointers"             , MachO::S_LAZY_SYMBOL_POINTERS },
+  { "SymbolStubs"                    , MachO::S_SYMBOL_STUBS },
+  { "ModInitFuncPointers"            , MachO::S_MOD_INIT_FUNC_POINTERS },
+  { "ModTermFuncPointers"            , MachO::S_MOD_TERM_FUNC_POINTERS },
+  { "Coalesced"                      , MachO::S_COALESCED },
+  { "GBZeroFill"                     , MachO::S_GB_ZEROFILL },
+  { "Interposing"                    , MachO::S_INTERPOSING },
+  { "16ByteLiterals"                 , MachO::S_16BYTE_LITERALS },
+  { "DTraceDOF"                      , MachO::S_DTRACE_DOF },
+  { "LazyDylibSymbolPointers"        , MachO::S_LAZY_DYLIB_SYMBOL_POINTERS },
+  { "ThreadLocalRegular"             , MachO::S_THREAD_LOCAL_REGULAR },
+  { "ThreadLocalZerofill"            , MachO::S_THREAD_LOCAL_ZEROFILL },
+  { "ThreadLocalVariables"           , MachO::S_THREAD_LOCAL_VARIABLES },
+  { "ThreadLocalVariablePointers"    , MachO::S_THREAD_LOCAL_VARIABLE_POINTERS },
+  { "ThreadLocalInitFunctionPointers", MachO::S_THREAD_LOCAL_INIT_FUNCTION_POINTERS }
+};
+
 static const EnumEntry<unsigned> MachOSectionAttributes[] = {
   { "LocReloc"         , 1 <<  0 /*S_ATTR_LOC_RELOC          */ },
   { "ExtReloc"         , 1 <<  1 /*S_ATTR_EXT_RELOC          */ },
@@ -456,7 +481,7 @@ void MachODumper::printSectionHeaders(const MachOObjectFile *Obj) {
     W.printHex("RelocationOffset", MOSection.RelocationTableOffset);
     W.printNumber("RelocationCount", MOSection.NumRelocationTableEntries);
     W.printEnum("Type", MOSection.Flags & 0xFF,
-                makeArrayRef(MachOSectionAttributes));
+                makeArrayRef(MachOSectionTypes));
     W.printFlags("Attributes", MOSection.Flags >> 8,
                  makeArrayRef(MachOSectionAttributes));
     W.printHex("Reserved1", MOSection.Reserved1);