brintos

brintos / llvm-project-archived public Read only

0
0
Text · 623 B · 4daa4d8 Raw
24 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 -t %t | FileCheck %s5 6SECTIONS {7  . = 0xff8;8  .aaa : {9    *(.aaa)10    foo = ALIGN(., 0x100);11    bar = .;12    zed1 = ALIGN(., 0x100) + 1;13    zed2 = ALIGN(., 0x100) - 1;14  }15  .bbb : { *(.bbb); }16  .ccc : { *(.ccc); }17  .text : { *(.text); }18}19 20# CHECK: 0000000000001000 g .aaa 0000000000000000 foo21# CHECK: 0000000000001000 g .aaa 0000000000000000 bar22# CHECK: 0000000000001001 g .aaa 0000000000000000 zed123# CHECK: 0000000000000fff g .aaa 0000000000000000 zed224