[ELF] Make section member orders consistent
[llvm-project.git] / lld / test / ELF / merge-string-align2.s
blob0d6a407d20403ca93d9c7d8d2cd6900c9e5c9d19
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o
4 # RUN: ld.lld %t.o -o %t
5 # RUN: llvm-readelf -S %t | FileCheck --check-prefix=SEC %s
6 # RUN: llvm-readelf -x .rodata %t | FileCheck %s
8 # SEC: Name Type {{.*}} Size ES Flg Lk Inf Al
9 # SEC: .rodata PROGBITS {{.*}} 000006 01 AMS 0 0 8
11 ## Check there is no extra padding.
13 # CHECK: a.b.c.
15 .section .rodata.str1.8,"aMS",@progbits,1
16 .align 8
17 .asciz "a"
19 .section .rodata.str1.2,"aMS",@progbits,1
20 .align 2
21 .asciz "b"
23 .section .rodata.str1.1,"aMS",@progbits,1
24 .align 1
25 .asciz "c"