brintos

brintos / llvm-project-archived public Read only

0
0
Text · 952 B · 686b2ef Raw
36 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o3 4# RUN: ld.lld %t.o -o %t5# RUN: llvm-readelf -S %t | FileCheck --check-prefix=SEC %s6# RUN: llvm-readelf -x .cst8 %t | FileCheck %s7 8# RUN: ld.lld -O0 -r %t.o -o %t1.o9# RUN: llvm-readelf -S %t1.o | FileCheck --check-prefix=SEC %s10# RUN: llvm-readelf -x .cst8 %t1.o | FileCheck %s11 12## Check that if we have SHF_MERGE sections with the same name, flags and13## entsize, but different alignments, we combine them with the maximum input14## alignment as the output alignment.15 16# SEC: Name  Type     {{.*}} Size   ES Flg Lk Inf Al17# SEC: .cst8 PROGBITS {{.*}} 000018 08  AM  0   0  818 19# CHECK:      [[#%x,]] 01000000 00000000 02000000 0000000020# CHECK-NEXT: [[#%x,]] 03000000 0000000021 22.section .cst8,"aM",@progbits,8,unique,023.align 424.quad 125.quad 126 27.section .cst8,"aM",@progbits,8,unique,128.align 429.quad 130.quad 231 32.section .cst8,"aM",@progbits,8,unique,233.align 834.quad 135.quad 336