brintos

brintos / llvm-project-archived public Read only

0
0
Text · 683 B · 54307b2 Raw
21 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/align.s -o %t.o3# RUN: ld.lld -o %t --script %s %t.o4# RUN: llvm-objdump --section-headers %t | FileCheck %s5 6SECTIONS {7  . = ALIGN(0x1234, 0x10000);8  .aaa : { *(.aaa) }9  . = ALIGN(., 4096);10  .bbb : { *(.bbb) }11  . = ALIGN(., 4096 * 4);12  .ccc : { *(.ccc) }13}14 15# CHECK:      Sections:16# CHECK-NEXT: Idx Name          Size     VMA              Type17# CHECK-NEXT:   0               00000000 000000000000000018# CHECK-NEXT:   1 .aaa          00000008 0000000000010000 DATA19# CHECK-NEXT:   2 .bbb          00000008 0000000000011000 DATA20# CHECK-NEXT:   3 .ccc          00000008 0000000000014000 DATA21