diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2013-09-15 19:53:20 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2013-09-15 19:53:20 +0000 |
commit | 766f25306af343fb2784350cb4d8cd9ca180f0d3 (patch) | |
tree | c51638c97cb5a38503e0e178931d11ba13fc85d9 /test | |
parent | bcd9b3b6b119420edffd259e5e05c5e0cf5fbc6c (diff) | |
download | llvm-766f25306af343fb2784350cb4d8cd9ca180f0d3.tar.gz llvm-766f25306af343fb2784350cb4d8cd9ca180f0d3.tar.bz2 llvm-766f25306af343fb2784350cb4d8cd9ca180f0d3.tar.xz |
ELF: Add support for the exclude section bit for gas compat.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190769 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/MC/ELF/section.s | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/test/MC/ELF/section.s b/test/MC/ELF/section.s index a6794034c9..b3246e0b81 100644 --- a/test/MC/ELF/section.s +++ b/test/MC/ELF/section.s @@ -8,9 +8,9 @@ .section -.note.GNU,"",@progbits // CHECK: Name: .note.GNU-stack (56) -// CHECK: Name: .note.GNU-stack2 (143) -// CHECK: Name: .note.GNU- (160) -// CHECK: Name: -.note.GNU (132) +// CHECK: Name: .note.GNU-stack2 (153) +// CHECK: Name: .note.GNU- (170) +// CHECK: Name: -.note.GNU (142) // Test that the defaults are used @@ -120,11 +120,28 @@ bar: // CHECK-NEXT: EntrySize: 0 // CHECK-NEXT: } +.section .excluded,"e",@progbits + +// CHECK: Section { +// CHECK: Name: .excluded (92) +// CHECK-NEXT: Type: SHT_PROGBITS (0x1) +// CHECK-NEXT: Flags [ (0x80000000) +// CHECK-NEXT: SHF_EXCLUDE (0x80000000) +// CHECK-NEXT: ] +// CHECK-NEXT: Address: 0x0 +// CHECK-NEXT: Offset: 0x50 +// CHECK-NEXT: Size: 0 +// CHECK-NEXT: Link: 0 +// CHECK-NEXT: Info: 0 +// CHECK-NEXT: AddressAlignment: 1 +// CHECK-NEXT: EntrySize: 0 +// CHECK-NEXT: } + // Test that we handle the strings like gas .section bar-"foo" .section "foo" // CHECK: Section { -// CHECK: Name: bar-"foo" (171) +// CHECK: Name: bar-"foo" (181) // CHECK: Section { // CHECK: Name: foo (52) |