brintos

brintos / llvm-project-archived public Read only

0
0
Text · 764 B · 5bde895 Raw
22 lines · plain
1# REQUIRES: x862 3## Check output section ALIGN modifier with -r4 5# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/align.s -o %t1.o6# RUN: ld.lld -r -o %t2.o --script %s %t1.o7# RUN: llvm-readelf -S %t2.o | FileCheck %s8 9# CHECK:      Section Headers:10# CHECK-NEXT: Name Type     Address          Off    Size   ES Flg Lk Inf Al11# CHECK-NEXT:      NULL     0000000000000000 000000 000000 0012# CHECK-NEXT: .aaa PROGBITS 0000000000000000 000040 000008 00   A  0   0   113# CHECK-NEXT: .bbb PROGBITS 0000000000000000 001000 000008 00   A  0   0  409614# CHECK-NEXT: .ccc PROGBITS 0000000000000000 004000 000008 00   A  0   0  1638415 16SECTIONS {17  . = 0x10000;18  .aaa : { *(.aaa) }19  .bbb : ALIGN(4096) { *(.bbb) }20  .ccc : ALIGN(4096 * 4) { *(.ccc) }21}22