2 // RUN
: llvm-mc
-filetype
=obj
-triple
=x86_64-pc-linux
%s
-o
%t.o
3 // RUN
: ld.lld
%t.o
-o
%t -M | FileCheck
%s
--check-prefix
=MAP
4 // RUN
: llvm-readobj
-S
%t | FileCheck
%s
7 // MAP-NEXT
: <internal
>:(.rodata.1)
8 // MAP-NEXT
: <internal
>:(.rodata.2)
10 .section .rodata.1,"aM",@progbits,1
14 // sh_addralign
= 4 while sh_entsize
= 3.
15 // sh_entsize is
not necessarily
a power of
2 and it can
be unrelated to sh_addralign.
16 .section .rodata.2,"aM",@progbits,3
21 // Since the output section has both
.rodata.1 and .rodata.2, it
22 // contains elements of different sizes
and we use an entsize of
0.
24 // CHECK
: Name
: .rodata (
25 // CHECK-NEXT
: Type
: SHT_PROGBITS
26 // CHECK-NEXT
: Flags
[
27 // CHECK-NEXT
: SHF_ALLOC
28 // CHECK-NEXT
: SHF_MERGE
30 // CHECK-NEXT
: Address
:
31 // CHECK-NEXT
: Offset
:
35 // CHECK-NEXT
: AddressAlignment
: 4
36 // CHECK-NEXT
: EntrySize
: 0