28 lines · plain
1// REQUIRES: x862// RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t3// RUN: ld.lld %t -o %t24// RUN: llvm-readobj --sections %t2 | FileCheck %s5 6.global _start7_start:8 9.section foobar,"",@progbits10 11.section bar, "a"12 13// Both sections are in the output and that the alloc section is first:14// CHECK: Name: bar15// CHECK-NEXT: Type: SHT_PROGBITS16// CHECK-NEXT: Flags [17// CHECK-NEXT: SHF_ALLOC18// CHECK-NEXT: ]19// CHECK-NEXT: Address: 0x20012020 21// CHECK: Name: foobar22// CHECK-NEXT: Type: SHT_PROGBITS23// CHECK-NEXT: Flags [24// CHECK-NEXT: ]25// CHECK-NEXT: Address: 0x026 27// CHECK-NOT: Name: foobar28