Mercurial > hg > CbC > CbC_llvm
view lld/test/ELF/linkerscript/align5.test @ 192:d7606dcf6fce
Added tag llvm10 for changeset 0572611fdcc8
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 14 Dec 2020 18:01:34 +0900 |
parents | 0572611fdcc8 |
children |
line wrap: on
line source
# REQUIRES: x86 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/align.s -o %t.o # RUN: ld.lld -o %t --script %s %t.o # RUN: llvm-objdump -t %t | FileCheck %s SECTIONS { . = 0xff8; .aaa : { *(.aaa) foo = ALIGN(., 0x100); bar = .; zed1 = ALIGN(., 0x100) + 1; zed2 = ALIGN(., 0x100) - 1; } .bbb : { *(.bbb); } .ccc : { *(.ccc); } .text : { *(.text); } } # CHECK: 0000000000001000 g .aaa 0000000000000000 foo # CHECK: 0000000000001000 g .aaa 0000000000000000 bar # CHECK: 0000000000001001 g .aaa 0000000000000000 zed1 # CHECK: 0000000000000fff g .aaa 0000000000000000 zed2