// RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t // RUN: ld.lld %t -o %t2 // RUN: llvm-readobj -sections %t2 | FileCheck %s // REQUIRES: x86 .global _start _start: .section foobar,"",@progbits,unique,1 .section foobar,"T",@progbits,unique,2 .section foobar,"",@nobits,unique,3 .section foobar,"",@nobits,unique,4 .section bar, "a" // Both sections are in the output and that the alloc section is first: // CHECK: Name: bar // CHECK-NEXT: Type: SHT_PROGBITS // CHECK-NEXT: Flags [ // CHECK-NEXT: SHF_ALLOC // CHECK-NEXT: ] // CHECK-NEXT: Address: 0x200120 // CHECK: Name: foobar // CHECK-NEXT: Type: SHT_PROGBITS // CHECK-NEXT: Flags [ // CHECK-NEXT: ] // CHECK-NEXT: Address: 0x0 // CHECK: Name: foobar // CHECK-NEXT: Type: SHT_PROGBITS // CHECK-NEXT: Flags [ // CHECK-NEXT: SHF_TLS // CHECK-NEXT: ] // CHECK-NEXT: Address: 0x0 // CHECK: Name: foobar // CHECK-NEXT: Type: SHT_NOBITS // CHECK-NEXT: Flags [ // CHECK-NEXT: ] // CHECK-NEXT: Address: 0x0 // CHECK-NOT: Name: foobar