diff options
Diffstat (limited to 'test/ELF/merge-section-types.s')
-rw-r--r-- | test/ELF/merge-section-types.s | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/ELF/merge-section-types.s b/test/ELF/merge-section-types.s new file mode 100644 index 000000000000..ee80fe177fe0 --- /dev/null +++ b/test/ELF/merge-section-types.s @@ -0,0 +1,19 @@ +// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o +// RUN: ld.lld -shared %t.o -o %t +// RUN: llvm-readobj -s %t | FileCheck %s + +// CHECK: Name: .foo +// CHECK-NEXT: Type: SHT_PROGBITS +// CHECK-NEXT: Flags [ +// CHECK-NEXT: SHF_ALLOC +// CHECK-NEXT: SHF_WRITE +// CHECK-NEXT: ] +// CHECK-NEXT: Address: 0x1000 +// CHECK-NEXT: Offset: 0x1000 +// CHECK-NEXT: Size: 16 + +.section .foo, "aw", @progbits, unique, 1 +.quad 0 + +.section .foo, "aw", @nobits, unique, 2 +.quad 0 |