Home | History | Annotate | Download | only in ELF
      1 // RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -s | FileCheck %s
      2 
      3 // Test that the bss section is correctly aligned
      4 
      5 	.local	foo
      6 	.comm	foo,2048,16
      7 
      8 // CHECK:        Section {
      9 // CHECK:          Name: .bss
     10 // CHECK-NEXT:     Type: SHT_NOBITS
     11 // CHECK-NEXT:     Flags [
     12 // CHECK-NEXT:       SHF_ALLOC
     13 // CHECK-NEXT:       SHF_WRITE
     14 // CHECK-NEXT:     ]
     15 // CHECK-NEXT:     Address: 0x0
     16 // CHECK-NEXT:     Offset: 0x40
     17 // CHECK-NEXT:     Size: 2048
     18 // CHECK-NEXT:     Link: 0
     19 // CHECK-NEXT:     Info: 0
     20 // CHECK-NEXT:     AddressAlignment: 16
     21 // CHECK-NEXT:     EntrySize: 0
     22 // CHECK-NEXT:   }
     23