2013-11-19 19:52:52 +00:00
|
|
|
// RUN: llvm-mc -triple i386-pc-win32 -filetype=obj %s | llvm-readobj -s -t | FileCheck %s
|
|
|
|
// RUN: llvm-mc -triple x86_64-pc-win32 -filetype=obj %s | llvm-readobj -s -t | FileCheck %s
|
|
|
|
|
2014-06-06 19:26:12 +00:00
|
|
|
.section assocSec, "dr", discard, "assocSym"
|
2013-11-19 19:52:52 +00:00
|
|
|
.long 1
|
|
|
|
|
|
|
|
.section secName, "dr", discard, "Symbol1"
|
|
|
|
.globl Symbol1
|
|
|
|
Symbol1:
|
|
|
|
.long 1
|
|
|
|
|
|
|
|
.section secName, "dr", one_only, "Symbol2"
|
|
|
|
.globl Symbol2
|
|
|
|
Symbol2:
|
|
|
|
.long 1
|
|
|
|
|
|
|
|
.section SecName, "dr", same_size, "Symbol3"
|
|
|
|
.globl Symbol3
|
|
|
|
Symbol3:
|
|
|
|
.long 1
|
|
|
|
|
|
|
|
.section SecName, "dr", same_contents, "Symbol4"
|
|
|
|
.globl Symbol4
|
|
|
|
Symbol4:
|
|
|
|
.long 1
|
|
|
|
|
2014-06-06 19:26:12 +00:00
|
|
|
.section SecName, "dr", associative, "assocSym"
|
2013-11-19 19:52:52 +00:00
|
|
|
.globl Symbol5
|
|
|
|
Symbol5:
|
|
|
|
.long 1
|
|
|
|
|
|
|
|
.section SecName, "dr", largest, "Symbol6"
|
|
|
|
.globl Symbol6
|
|
|
|
Symbol6:
|
|
|
|
.long 1
|
|
|
|
|
|
|
|
.section SecName, "dr", newest, "Symbol7"
|
|
|
|
.globl Symbol7
|
|
|
|
Symbol7:
|
|
|
|
.long 1
|
|
|
|
|
|
|
|
// CHECK: Sections [
|
|
|
|
// CHECK: Section {
|
2014-06-06 21:40:16 +00:00
|
|
|
// CHECK: Number: 4
|
2013-11-19 19:52:52 +00:00
|
|
|
// CHECK: Name: assocSec
|
|
|
|
// CHECK: Characteristics [
|
|
|
|
// CHECK: IMAGE_SCN_LNK_COMDAT
|
|
|
|
// CHECK: ]
|
|
|
|
// CHECK: }
|
|
|
|
// CHECK: Section {
|
2014-06-06 21:40:16 +00:00
|
|
|
// CHECK: Number: 5
|
2013-11-19 19:52:52 +00:00
|
|
|
// CHECK: Name: secName
|
|
|
|
// CHECK: Characteristics [
|
|
|
|
// CHECK: IMAGE_SCN_LNK_COMDAT
|
|
|
|
// CHECK: ]
|
|
|
|
// CHECK: }
|
|
|
|
// CHECK: Section {
|
2014-06-06 21:40:16 +00:00
|
|
|
// CHECK: Number: 6
|
2013-11-19 19:52:52 +00:00
|
|
|
// CHECK: Name: secName
|
|
|
|
// CHECK: Characteristics [
|
|
|
|
// CHECK: IMAGE_SCN_LNK_COMDAT
|
|
|
|
// CHECK: ]
|
|
|
|
// CHECK: }
|
|
|
|
// CHECK: Section {
|
2014-06-06 21:40:16 +00:00
|
|
|
// CHECK: Number: 7
|
2013-11-19 19:52:52 +00:00
|
|
|
// CHECK: Name: SecName
|
|
|
|
// CHECK: Characteristics [
|
|
|
|
// CHECK: IMAGE_SCN_LNK_COMDAT
|
|
|
|
// CHECK: ]
|
|
|
|
// CHECK: }
|
|
|
|
// CHECK: Section {
|
2014-06-06 21:40:16 +00:00
|
|
|
// CHECK: Number: 8
|
2013-11-19 19:52:52 +00:00
|
|
|
// CHECK: Name: SecName
|
|
|
|
// CHECK: Characteristics [
|
|
|
|
// CHECK: IMAGE_SCN_LNK_COMDAT
|
|
|
|
// CHECK: ]
|
|
|
|
// CHECK: }
|
|
|
|
// CHECK: Section {
|
2014-06-06 21:40:16 +00:00
|
|
|
// CHECK: Number: 9
|
2013-11-19 19:52:52 +00:00
|
|
|
// CHECK: Name: SecName
|
|
|
|
// CHECK: Characteristics [
|
|
|
|
// CHECK: IMAGE_SCN_LNK_COMDAT
|
|
|
|
// CHECK: ]
|
|
|
|
// CHECK: }
|
|
|
|
// CHECK: Section {
|
2014-06-06 21:40:16 +00:00
|
|
|
// CHECK: Number: 10
|
2013-11-19 19:52:52 +00:00
|
|
|
// CHECK: Name: SecName
|
|
|
|
// CHECK: Characteristics [
|
|
|
|
// CHECK: IMAGE_SCN_LNK_COMDAT
|
|
|
|
// CHECK: ]
|
|
|
|
// CHECK: }
|
|
|
|
// CHECK: Section {
|
2014-06-06 21:40:16 +00:00
|
|
|
// CHECK: Number: 11
|
2013-11-19 19:52:52 +00:00
|
|
|
// CHECK: Name: SecName
|
|
|
|
// CHECK: Characteristics [
|
|
|
|
// CHECK: IMAGE_SCN_LNK_COMDAT
|
|
|
|
// CHECK: ]
|
|
|
|
// CHECK: }
|
|
|
|
// CHECK: ]
|
|
|
|
// CHECK: Symbols [
|
|
|
|
// CHECK: Symbol {
|
|
|
|
// CHECK: Name: assocSec
|
2014-06-06 21:40:16 +00:00
|
|
|
// CHECK: Section: assocSec (4)
|
2013-11-19 19:52:52 +00:00
|
|
|
// CHECK: AuxSectionDef {
|
|
|
|
// CHECK: Selection: Any
|
|
|
|
// CHECK: }
|
|
|
|
// CHECK: }
|
|
|
|
// CHECK: Symbol {
|
2014-06-06 19:26:12 +00:00
|
|
|
// CHECK: Name: assocSym
|
|
|
|
// CHECK: Section: assocSec
|
|
|
|
// CHECK: }
|
|
|
|
// CHECK: Symbol {
|
2013-11-19 19:52:52 +00:00
|
|
|
// CHECK: Name: secName
|
2014-06-06 21:40:16 +00:00
|
|
|
// CHECK: Section: secName (5)
|
2013-11-19 19:52:52 +00:00
|
|
|
// CHECK: AuxSectionDef {
|
|
|
|
// CHECK: Selection: Any
|
|
|
|
// CHECK: }
|
|
|
|
// CHECK: }
|
|
|
|
// CHECK: Symbol {
|
2014-06-06 19:26:12 +00:00
|
|
|
// CHECK: Name: Symbol1
|
2014-06-06 21:40:16 +00:00
|
|
|
// CHECK: Section: secName (5)
|
2014-06-06 19:26:12 +00:00
|
|
|
// CHECK: }
|
|
|
|
// CHECK: Symbol {
|
2013-11-19 19:52:52 +00:00
|
|
|
// CHECK: Name: secName
|
2014-06-06 21:40:16 +00:00
|
|
|
// CHECK: Section: secName (6)
|
2013-11-19 19:52:52 +00:00
|
|
|
// CHECK: AuxSectionDef {
|
|
|
|
// CHECK: Selection: NoDuplicates
|
|
|
|
// CHECK: }
|
|
|
|
// CHECK: }
|
|
|
|
// CHECK: Symbol {
|
2014-06-06 19:26:12 +00:00
|
|
|
// CHECK: Name: Symbol2
|
2014-06-06 21:40:16 +00:00
|
|
|
// CHECK: Section: secName (6)
|
2014-06-06 19:26:12 +00:00
|
|
|
// CHECK: }
|
|
|
|
// CHECK: Symbol {
|
2013-11-19 19:52:52 +00:00
|
|
|
// CHECK: Name: SecName
|
2014-06-06 21:40:16 +00:00
|
|
|
// CHECK: Section: SecName (7)
|
2013-11-19 19:52:52 +00:00
|
|
|
// CHECK: AuxSectionDef {
|
|
|
|
// CHECK: Selection: SameSize
|
|
|
|
// CHECK: }
|
|
|
|
// CHECK: }
|
|
|
|
// CHECK: Symbol {
|
2014-06-06 19:26:12 +00:00
|
|
|
// CHECK: Name: Symbol3
|
2014-06-06 21:40:16 +00:00
|
|
|
// CHECK: Section: SecName (7)
|
2014-06-06 19:26:12 +00:00
|
|
|
// CHECK: }
|
|
|
|
// CHECK: Symbol {
|
2013-11-19 19:52:52 +00:00
|
|
|
// CHECK: Name: SecName
|
2014-06-06 21:40:16 +00:00
|
|
|
// CHECK: Section: SecName (8)
|
2013-11-19 19:52:52 +00:00
|
|
|
// CHECK: AuxSymbolCount: 1
|
|
|
|
// CHECK: AuxSectionDef {
|
|
|
|
// CHECK: Selection: ExactMatch
|
|
|
|
// CHECK: }
|
|
|
|
// CHECK: }
|
|
|
|
// CHECK: Symbol {
|
2014-06-06 19:26:12 +00:00
|
|
|
// CHECK: Name: Symbol4
|
2014-06-06 21:40:16 +00:00
|
|
|
// CHECK: Section: SecName (8)
|
2014-06-06 19:26:12 +00:00
|
|
|
// CHECK: }
|
|
|
|
// CHECK: Symbol {
|
2013-11-19 19:52:52 +00:00
|
|
|
// CHECK: Name: SecName
|
2014-06-06 21:40:16 +00:00
|
|
|
// CHECK: Section: SecName (9)
|
2013-11-19 19:52:52 +00:00
|
|
|
// CHECK: AuxSectionDef {
|
|
|
|
// CHECK: Selection: Associative
|
2014-06-06 21:40:16 +00:00
|
|
|
// CHECK: AssocSection: assocSec (4)
|
2013-11-19 19:52:52 +00:00
|
|
|
// CHECK: }
|
|
|
|
// CHECK: }
|
|
|
|
// CHECK: Symbol {
|
|
|
|
// CHECK: Name: SecName
|
2014-06-06 21:40:16 +00:00
|
|
|
// CHECK: Section: SecName (10)
|
2013-11-19 19:52:52 +00:00
|
|
|
// CHECK: AuxSectionDef {
|
|
|
|
// CHECK: Selection: Largest
|
|
|
|
// CHECK: }
|
|
|
|
// CHECK: }
|
|
|
|
// CHECK: Symbol {
|
2014-06-06 19:26:12 +00:00
|
|
|
// CHECK: Name: Symbol6
|
2014-06-06 21:40:16 +00:00
|
|
|
// CHECK: Section: SecName (10)
|
2014-06-06 19:26:12 +00:00
|
|
|
// CHECK: }
|
|
|
|
// CHECK: Symbol {
|
2013-11-19 19:52:52 +00:00
|
|
|
// CHECK: Name: SecName
|
2014-06-06 21:40:16 +00:00
|
|
|
// CHECK: Section: SecName (11)
|
2013-11-19 19:52:52 +00:00
|
|
|
// CHECK: AuxSectionDef {
|
|
|
|
// CHECK: Selection: Newest (0x7)
|
|
|
|
// CHECK: }
|
|
|
|
// CHECK: }
|
|
|
|
// CHECK: Symbol {
|
2014-06-06 19:26:12 +00:00
|
|
|
// CHECK: Name: Symbol7
|
2014-06-06 21:40:16 +00:00
|
|
|
// CHECK: Section: SecName (11)
|
2014-06-06 08:18:18 +00:00
|
|
|
// CHECK: }
|
|
|
|
// CHECK: Symbol {
|
|
|
|
// CHECK: Name: Symbol5
|
2014-06-06 21:40:16 +00:00
|
|
|
// CHECK: Section: SecName (9)
|
2013-11-19 19:52:52 +00:00
|
|
|
// CHECK: }
|
|
|
|
// CHECK: ]
|