diff options
author | David Majnemer <david.majnemer@gmail.com> | 2014-06-27 17:19:44 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2014-06-27 17:19:44 +0000 |
commit | d7d427732e3e7f571bc915c15974e184733bbd01 (patch) | |
tree | fdd6a57bf418275b890e8c43fc3cc38e5d71fcf1 /test | |
parent | 6d557f37cf463fb19f34b8eacd98ef5b6da4aa4b (diff) | |
download | llvm-d7d427732e3e7f571bc915c15974e184733bbd01.tar.gz llvm-d7d427732e3e7f571bc915c15974e184733bbd01.tar.bz2 llvm-d7d427732e3e7f571bc915c15974e184733bbd01.tar.xz |
MC: Fix associative sections on COFF
COFF sections in MC were represented by a tuple of section-name and
COMDAT-name. This is not sufficient to represent a .text section
associated with another .text section; we need a way to distinguish
between the key section and the one marked associative.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211913 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/MC/COFF/section-comdat.s | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/MC/COFF/section-comdat.s b/test/MC/COFF/section-comdat.s index 8a7de1a1d9..e7052d8f5a 100644 --- a/test/MC/COFF/section-comdat.s +++ b/test/MC/COFF/section-comdat.s @@ -39,6 +39,11 @@ Symbol6: Symbol7: .long 1 +.section assocSec, "dr", associative, "assocSym" +.globl Symbol8 +Symbol8: +.long 1 + // CHECK: Sections [ // CHECK: Section { // CHECK: Number: 4 @@ -185,7 +190,19 @@ Symbol7: // CHECK: Section: SecName (11) // CHECK: } // CHECK: Symbol { +// CHECK: Name: assocSec +// CHECK: Section: assocSec (12) +// CHECK: AuxSectionDef { +// CHECK: Selection: Associative (0x5) +// CHECK: AssocSection: assocSec (4) +// CHECK: } +// CHECK: } +// CHECK: Symbol { // CHECK: Name: Symbol5 // CHECK: Section: SecName (9) // CHECK: } +// CHECK: Symbol { +// CHECK: Name: Symbol8 +// CHECK: Section: assocSec (12) +// CHECK: } // CHECK: ] |