1// RUN: llvm-mc -triple i386-pc-win32 -filetype=obj %s | llvm-readobj -S --symbols - | FileCheck %s 2// RUN: llvm-mc -triple x86_64-pc-win32 -filetype=obj %s | llvm-readobj -S --symbols - | FileCheck %s 3 4.section assocSec, "dr", discard, "assocSym" 5.global assocSym 6assocSym: 7.long 1 8 9.section secName, "dr", discard, "Symbol1" 10.globl Symbol1 11Symbol1: 12.long 1 13 14.section secName, "dr", one_only, "Symbol2" 15.globl Symbol2 16Symbol2: 17.long 1 18 19.section SecName, "dr", same_size, "Symbol3" 20.globl Symbol3 21Symbol3: 22.long 1 23 24.section SecName, "dr", same_contents, "Symbol4" 25.globl Symbol4 26Symbol4: 27.long 1 28 29.section SecName, "dr", associative, "assocSym" 30.globl Symbol5 31Symbol5: 32.long 1 33 34.section SecName, "dr", largest, "Symbol6" 35.globl Symbol6 36Symbol6: 37.long 1 38 39.section SecName, "dr", newest, "Symbol7" 40.globl Symbol7 41Symbol7: 42.long 1 43 44.section assocSec, "dr", associative, "assocSym" 45.globl Symbol8 46Symbol8: 47.long 1 48 49// CHECK: Sections [ 50// CHECK: Section { 51// CHECK: Number: 4 52// CHECK: Name: assocSec 53// CHECK: Characteristics [ 54// CHECK: IMAGE_SCN_LNK_COMDAT 55// CHECK: ] 56// CHECK: } 57// CHECK: Section { 58// CHECK: Number: 5 59// CHECK: Name: secName 60// CHECK: Characteristics [ 61// CHECK: IMAGE_SCN_LNK_COMDAT 62// CHECK: ] 63// CHECK: } 64// CHECK: Section { 65// CHECK: Number: 6 66// CHECK: Name: secName 67// CHECK: Characteristics [ 68// CHECK: IMAGE_SCN_LNK_COMDAT 69// CHECK: ] 70// CHECK: } 71// CHECK: Section { 72// CHECK: Number: 7 73// CHECK: Name: SecName 74// CHECK: Characteristics [ 75// CHECK: IMAGE_SCN_LNK_COMDAT 76// CHECK: ] 77// CHECK: } 78// CHECK: Section { 79// CHECK: Number: 8 80// CHECK: Name: SecName 81// CHECK: Characteristics [ 82// CHECK: IMAGE_SCN_LNK_COMDAT 83// CHECK: ] 84// CHECK: } 85// CHECK: Section { 86// CHECK: Number: 9 87// CHECK: Name: SecName 88// CHECK: Characteristics [ 89// CHECK: IMAGE_SCN_LNK_COMDAT 90// CHECK: ] 91// CHECK: } 92// CHECK: Section { 93// CHECK: Number: 10 94// CHECK: Name: SecName 95// CHECK: Characteristics [ 96// CHECK: IMAGE_SCN_LNK_COMDAT 97// CHECK: ] 98// CHECK: } 99// CHECK: Section { 100// CHECK: Number: 11 101// CHECK: Name: SecName 102// CHECK: Characteristics [ 103// CHECK: IMAGE_SCN_LNK_COMDAT 104// CHECK: ] 105// CHECK: } 106// CHECK: ] 107// CHECK: Symbols [ 108// CHECK: Symbol { 109// CHECK: Name: assocSec 110// CHECK: Section: assocSec (4) 111// CHECK: AuxSectionDef { 112// CHECK: Selection: Any 113// CHECK: } 114// CHECK: } 115// CHECK: Symbol { 116// CHECK: Name: assocSym 117// CHECK: Section: assocSec 118// CHECK: } 119// CHECK: Symbol { 120// CHECK: Name: secName 121// CHECK: Section: secName (5) 122// CHECK: AuxSectionDef { 123// CHECK: Selection: Any 124// CHECK: } 125// CHECK: } 126// CHECK: Symbol { 127// CHECK: Name: Symbol1 128// CHECK: Section: secName (5) 129// CHECK: } 130// CHECK: Symbol { 131// CHECK: Name: secName 132// CHECK: Section: secName (6) 133// CHECK: AuxSectionDef { 134// CHECK: Selection: NoDuplicates 135// CHECK: } 136// CHECK: } 137// CHECK: Symbol { 138// CHECK: Name: Symbol2 139// CHECK: Section: secName (6) 140// CHECK: } 141// CHECK: Symbol { 142// CHECK: Name: SecName 143// CHECK: Section: SecName (7) 144// CHECK: AuxSectionDef { 145// CHECK: Selection: SameSize 146// CHECK: } 147// CHECK: } 148// CHECK: Symbol { 149// CHECK: Name: Symbol3 150// CHECK: Section: SecName (7) 151// CHECK: } 152// CHECK: Symbol { 153// CHECK: Name: SecName 154// CHECK: Section: SecName (8) 155// CHECK: AuxSymbolCount: 1 156// CHECK: AuxSectionDef { 157// CHECK: Selection: ExactMatch 158// CHECK: } 159// CHECK: } 160// CHECK: Symbol { 161// CHECK: Name: Symbol4 162// CHECK: Section: SecName (8) 163// CHECK: } 164// CHECK: Symbol { 165// CHECK: Name: SecName 166// CHECK: Section: SecName (11) 167// CHECK: AuxSectionDef { 168// CHECK: Selection: Associative 169// CHECK: AssocSection: assocSec (4) 170// CHECK: } 171// CHECK: } 172// CHECK: Symbol { 173// CHECK: Name: SecName 174// CHECK: Section: SecName (9) 175// CHECK: AuxSectionDef { 176// CHECK: Selection: Largest 177// CHECK: } 178// CHECK: } 179// CHECK: Symbol { 180// CHECK: Name: Symbol6 181// CHECK: Section: SecName (9) 182// CHECK: } 183// CHECK: Symbol { 184// CHECK: Name: SecName 185// CHECK: Section: SecName (10) 186// CHECK: AuxSectionDef { 187// CHECK: Selection: Newest (0x7) 188// CHECK: } 189// CHECK: } 190// CHECK: Symbol { 191// CHECK: Name: Symbol7 192// CHECK: Section: SecName (10) 193// CHECK: } 194// CHECK: Symbol { 195// CHECK: Name: assocSec 196// CHECK: Section: assocSec (12) 197// CHECK: AuxSectionDef { 198// CHECK: Selection: Associative (0x5) 199// CHECK: AssocSection: assocSec (4) 200// CHECK: } 201// CHECK: } 202// CHECK: Symbol { 203// CHECK: Name: Symbol5 204// CHECK: Section: SecName (11) 205// CHECK: } 206// CHECK: Symbol { 207// CHECK: Name: Symbol8 208// CHECK: Section: assocSec (12) 209// CHECK: } 210// CHECK: ] 211