Move "local commons" to the end of .bss to match the gnu as behavior.
[oota-llvm.git] / test / MC / ELF / common2.s
1 // RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | elf-dump  | FileCheck %s
2
3 // Test that the common symbols are placed at the end of .bss. In this example
4 // it causes .bss to have size 9 instead of 8.
5
6         .local  vimvardict
7         .comm   vimvardict,1,8
8         .bss
9         .zero 1
10         .align  8
11
12 // CHECK:      (('sh_name', 13) # '.bss'
13 // CHECK-NEXT:  ('sh_type',
14 // CHECK-NEXT:  ('sh_flags'
15 // CHECK-NEXT:  ('sh_addr',
16 // CHECK-NEXT:  ('sh_offset',
17 // CHECK-NEXT:  ('sh_size', 9)
18 // CHECK-NEXT:  ('sh_link',
19 // CHECK-NEXT:  ('sh_info',
20 // CHECK-NEXT:  ('sh_addralign',
21 // CHECK-NEXT:  ('sh_entsize',