1# REQUIRES: x86
2# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
3# RUN: echo "SECTIONS {" > %t.script
4# RUN: echo ". = 0x150; . = 0x10; .text : {} }" >> %t.script
5# RUN: ld.lld %t.o --script %t.script -o %t -shared
6# RUN: llvm-objdump -section-headers %t | FileCheck %s
7# CHECK:  Name   Size   VMA
8# CHECK: .text 00000000 0000000000000010
9
10# RUN: echo "SECTIONS { . = 0x20; . = ASSERT(0x1, "foo"); }" > %t2.script
11# RUN: ld.lld %t.o --script %t2.script -o %t -shared
12