xref: /llvm-project/lld/test/ELF/merge-string-align2.s (revision c117be6fc620c7b97e6fc1de71291e5082d60614)
1# REQUIRES: x86
2# RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o
3
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
7
8# SEC: Name    Type     {{.*}} Size   ES Flg Lk Inf Al
9# SEC: .rodata PROGBITS {{.*}} 000006 01 AMS  0   0  8
10
11## Check there is no extra padding.
12
13# CHECK: a.b.c.
14
15.section .rodata.str1.8,"aMS",@progbits,1
16.align 8
17.asciz "a"
18
19.section .rodata.str1.2,"aMS",@progbits,1
20.align 2
21.asciz "b"
22
23.section .rodata.str1.1,"aMS",@progbits,1
24.align 1
25.asciz "c"
26