2017-02-18 00:01:51 +08:00
|
|
|
# REQUIRES: x86
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
|
2017-02-21 22:50:38 +08:00
|
|
|
# RUN: echo "SECTIONS {" > %t.script
|
2018-05-16 01:02:35 +08:00
|
|
|
# RUN: echo ". = 0x150; . = 0x10; .text : {} }" >> %t.script
|
2017-07-12 22:50:25 +08:00
|
|
|
# RUN: ld.lld %t.o --script %t.script -o %t -shared
|
2020-03-16 08:47:44 +08:00
|
|
|
# RUN: llvm-objdump --section-headers %t | FileCheck %s
|
2019-01-28 23:03:47 +08:00
|
|
|
# CHECK: Name Size VMA
|
2018-06-27 01:04:47 +08:00
|
|
|
# CHECK: .text 00000000 0000000000000010
|
2017-02-21 15:33:38 +08:00
|
|
|
|
|
|
|
# RUN: echo "SECTIONS { . = 0x20; . = ASSERT(0x1, "foo"); }" > %t2.script
|
|
|
|
# RUN: ld.lld %t.o --script %t2.script -o %t -shared
|