2013-11-20 03:52:52 +08: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-07 03:26:12 +08:00
|
|
|
.section assocSec, "dr", discard, "assocSym"
|
2013-11-20 03:52:52 +08: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-07 03:26:12 +08:00
|
|
|
.section SecName, "dr", associative, "assocSym"
|
2013-11-20 03:52:52 +08: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
|
|
|
|
|
2014-06-28 01:19:44 +08:00
|
|
|
.section assocSec, "dr", associative, "assocSym"
|
|
|
|
.globl Symbol8
|
|
|
|
Symbol8:
|
|
|
|
.long 1
|
|
|
|
|
2013-11-20 03:52:52 +08:00
|
|
|
// CHECK: Sections [
|
|
|
|
// CHECK: Section {
|
2014-06-07 05:40:16 +08:00
|
|
|
// CHECK: Number: 4
|
2013-11-20 03:52:52 +08:00
|
|
|
// CHECK: Name: assocSec
|
|
|
|
// CHECK: Characteristics [
|
|
|
|
// CHECK: IMAGE_SCN_LNK_COMDAT
|
|
|
|
// CHECK: ]
|
|
|
|
// CHECK: }
|
|
|
|
// CHECK: Section {
|
2014-06-07 05:40:16 +08:00
|
|
|
// CHECK: Number: 5
|
2013-11-20 03:52:52 +08:00
|
|
|
// CHECK: Name: secName
|
|
|
|
// CHECK: Characteristics [
|
|
|
|
// CHECK: IMAGE_SCN_LNK_COMDAT
|
|
|
|
// CHECK: ]
|
|
|
|
// CHECK: }
|
|
|
|
// CHECK: Section {
|
2014-06-07 05:40:16 +08:00
|
|
|
// CHECK: Number: 6
|
2013-11-20 03:52:52 +08:00
|
|
|
// CHECK: Name: secName
|
|
|
|
// CHECK: Characteristics [
|
|
|
|
// CHECK: IMAGE_SCN_LNK_COMDAT
|
|
|
|
// CHECK: ]
|
|
|
|
// CHECK: }
|
|
|
|
// CHECK: Section {
|
2014-06-07 05:40:16 +08:00
|
|
|
// CHECK: Number: 7
|
2013-11-20 03:52:52 +08:00
|
|
|
// CHECK: Name: SecName
|
|
|
|
// CHECK: Characteristics [
|
|
|
|
// CHECK: IMAGE_SCN_LNK_COMDAT
|
|
|
|
// CHECK: ]
|
|
|
|
// CHECK: }
|
|
|
|
// CHECK: Section {
|
2014-06-07 05:40:16 +08:00
|
|
|
// CHECK: Number: 8
|
2013-11-20 03:52:52 +08:00
|
|
|
// CHECK: Name: SecName
|
|
|
|
// CHECK: Characteristics [
|
|
|
|
// CHECK: IMAGE_SCN_LNK_COMDAT
|
|
|
|
// CHECK: ]
|
|
|
|
// CHECK: }
|
|
|
|
// CHECK: Section {
|
2014-06-07 05:40:16 +08:00
|
|
|
// CHECK: Number: 9
|
2013-11-20 03:52:52 +08:00
|
|
|
// CHECK: Name: SecName
|
|
|
|
// CHECK: Characteristics [
|
|
|
|
// CHECK: IMAGE_SCN_LNK_COMDAT
|
|
|
|
// CHECK: ]
|
|
|
|
// CHECK: }
|
|
|
|
// CHECK: Section {
|
2014-06-07 05:40:16 +08:00
|
|
|
// CHECK: Number: 10
|
2013-11-20 03:52:52 +08:00
|
|
|
// CHECK: Name: SecName
|
|
|
|
// CHECK: Characteristics [
|
|
|
|
// CHECK: IMAGE_SCN_LNK_COMDAT
|
|
|
|
// CHECK: ]
|
|
|
|
// CHECK: }
|
|
|
|
// CHECK: Section {
|
2014-06-07 05:40:16 +08:00
|
|
|
// CHECK: Number: 11
|
2013-11-20 03:52:52 +08:00
|
|
|
// CHECK: Name: SecName
|
|
|
|
// CHECK: Characteristics [
|
|
|
|
// CHECK: IMAGE_SCN_LNK_COMDAT
|
|
|
|
// CHECK: ]
|
|
|
|
// CHECK: }
|
|
|
|
// CHECK: ]
|
|
|
|
// CHECK: Symbols [
|
|
|
|
// CHECK: Symbol {
|
|
|
|
// CHECK: Name: assocSec
|
2014-06-07 05:40:16 +08:00
|
|
|
// CHECK: Section: assocSec (4)
|
2013-11-20 03:52:52 +08:00
|
|
|
// CHECK: AuxSectionDef {
|
|
|
|
// CHECK: Selection: Any
|
|
|
|
// CHECK: }
|
|
|
|
// CHECK: }
|
|
|
|
// CHECK: Symbol {
|
2014-06-07 03:26:12 +08:00
|
|
|
// CHECK: Name: assocSym
|
|
|
|
// CHECK: Section: assocSec
|
|
|
|
// CHECK: }
|
|
|
|
// CHECK: Symbol {
|
2013-11-20 03:52:52 +08:00
|
|
|
// CHECK: Name: secName
|
2014-06-07 05:40:16 +08:00
|
|
|
// CHECK: Section: secName (5)
|
2013-11-20 03:52:52 +08:00
|
|
|
// CHECK: AuxSectionDef {
|
|
|
|
// CHECK: Selection: Any
|
|
|
|
// CHECK: }
|
|
|
|
// CHECK: }
|
|
|
|
// CHECK: Symbol {
|
2014-06-07 03:26:12 +08:00
|
|
|
// CHECK: Name: Symbol1
|
2014-06-07 05:40:16 +08:00
|
|
|
// CHECK: Section: secName (5)
|
2014-06-07 03:26:12 +08:00
|
|
|
// CHECK: }
|
|
|
|
// CHECK: Symbol {
|
2013-11-20 03:52:52 +08:00
|
|
|
// CHECK: Name: secName
|
2014-06-07 05:40:16 +08:00
|
|
|
// CHECK: Section: secName (6)
|
2013-11-20 03:52:52 +08:00
|
|
|
// CHECK: AuxSectionDef {
|
|
|
|
// CHECK: Selection: NoDuplicates
|
|
|
|
// CHECK: }
|
|
|
|
// CHECK: }
|
|
|
|
// CHECK: Symbol {
|
2014-06-07 03:26:12 +08:00
|
|
|
// CHECK: Name: Symbol2
|
2014-06-07 05:40:16 +08:00
|
|
|
// CHECK: Section: secName (6)
|
2014-06-07 03:26:12 +08:00
|
|
|
// CHECK: }
|
|
|
|
// CHECK: Symbol {
|
2013-11-20 03:52:52 +08:00
|
|
|
// CHECK: Name: SecName
|
2014-06-07 05:40:16 +08:00
|
|
|
// CHECK: Section: SecName (7)
|
2013-11-20 03:52:52 +08:00
|
|
|
// CHECK: AuxSectionDef {
|
|
|
|
// CHECK: Selection: SameSize
|
|
|
|
// CHECK: }
|
|
|
|
// CHECK: }
|
|
|
|
// CHECK: Symbol {
|
2014-06-07 03:26:12 +08:00
|
|
|
// CHECK: Name: Symbol3
|
2014-06-07 05:40:16 +08:00
|
|
|
// CHECK: Section: SecName (7)
|
2014-06-07 03:26:12 +08:00
|
|
|
// CHECK: }
|
|
|
|
// CHECK: Symbol {
|
2013-11-20 03:52:52 +08:00
|
|
|
// CHECK: Name: SecName
|
2014-06-07 05:40:16 +08:00
|
|
|
// CHECK: Section: SecName (8)
|
2013-11-20 03:52:52 +08:00
|
|
|
// CHECK: AuxSymbolCount: 1
|
|
|
|
// CHECK: AuxSectionDef {
|
|
|
|
// CHECK: Selection: ExactMatch
|
|
|
|
// CHECK: }
|
|
|
|
// CHECK: }
|
|
|
|
// CHECK: Symbol {
|
2014-06-07 03:26:12 +08:00
|
|
|
// CHECK: Name: Symbol4
|
2014-06-07 05:40:16 +08:00
|
|
|
// CHECK: Section: SecName (8)
|
2014-06-07 03:26:12 +08:00
|
|
|
// CHECK: }
|
|
|
|
// CHECK: Symbol {
|
2013-11-20 03:52:52 +08:00
|
|
|
// CHECK: Name: SecName
|
2017-02-18 01:32:54 +08:00
|
|
|
// CHECK: Section: SecName (11)
|
2013-11-20 03:52:52 +08:00
|
|
|
// CHECK: AuxSectionDef {
|
|
|
|
// CHECK: Selection: Associative
|
2014-06-07 05:40:16 +08:00
|
|
|
// CHECK: AssocSection: assocSec (4)
|
2013-11-20 03:52:52 +08:00
|
|
|
// CHECK: }
|
|
|
|
// CHECK: }
|
|
|
|
// CHECK: Symbol {
|
|
|
|
// CHECK: Name: SecName
|
2017-02-18 01:32:54 +08:00
|
|
|
// CHECK: Section: SecName (9)
|
2013-11-20 03:52:52 +08:00
|
|
|
// CHECK: AuxSectionDef {
|
|
|
|
// CHECK: Selection: Largest
|
|
|
|
// CHECK: }
|
|
|
|
// CHECK: }
|
|
|
|
// CHECK: Symbol {
|
2014-06-07 03:26:12 +08:00
|
|
|
// CHECK: Name: Symbol6
|
2017-02-18 01:32:54 +08:00
|
|
|
// CHECK: Section: SecName (9)
|
2014-06-07 03:26:12 +08:00
|
|
|
// CHECK: }
|
|
|
|
// CHECK: Symbol {
|
2013-11-20 03:52:52 +08:00
|
|
|
// CHECK: Name: SecName
|
2017-02-18 01:32:54 +08:00
|
|
|
// CHECK: Section: SecName (10)
|
2013-11-20 03:52:52 +08:00
|
|
|
// CHECK: AuxSectionDef {
|
|
|
|
// CHECK: Selection: Newest (0x7)
|
|
|
|
// CHECK: }
|
|
|
|
// CHECK: }
|
|
|
|
// CHECK: Symbol {
|
2014-06-07 03:26:12 +08:00
|
|
|
// CHECK: Name: Symbol7
|
2017-02-18 01:32:54 +08:00
|
|
|
// CHECK: Section: SecName (10)
|
2014-06-06 16:18:18 +08:00
|
|
|
// CHECK: }
|
|
|
|
// CHECK: Symbol {
|
2014-06-28 01:19:44 +08:00
|
|
|
// CHECK: Name: assocSec
|
|
|
|
// CHECK: Section: assocSec (12)
|
|
|
|
// CHECK: AuxSectionDef {
|
|
|
|
// CHECK: Selection: Associative (0x5)
|
|
|
|
// CHECK: AssocSection: assocSec (4)
|
|
|
|
// CHECK: }
|
|
|
|
// CHECK: }
|
|
|
|
// CHECK: Symbol {
|
2014-06-06 16:18:18 +08:00
|
|
|
// CHECK: Name: Symbol5
|
2017-02-18 01:32:54 +08:00
|
|
|
// CHECK: Section: SecName (11)
|
2013-11-20 03:52:52 +08:00
|
|
|
// CHECK: }
|
2014-06-28 01:19:44 +08:00
|
|
|
// CHECK: Symbol {
|
|
|
|
// CHECK: Name: Symbol8
|
|
|
|
// CHECK: Section: assocSec (12)
|
|
|
|
// CHECK: }
|
2013-11-20 03:52:52 +08:00
|
|
|
// CHECK: ]
|