2016-07-15 19:20:04 +08:00
|
|
|
# REQUIRES: x86
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
|
|
|
|
|
2016-09-30 08:06:24 +08:00
|
|
|
# RUN: echo "SECTIONS { . = SIZEOF_HEADERS; .text : {*(.text.*)} end = .;}" > %t.script
|
2016-07-15 19:20:04 +08:00
|
|
|
# RUN: ld.lld -o %t1 --script %t.script %t
|
|
|
|
# RUN: llvm-objdump -t %t1 | FileCheck %s
|
2016-11-01 05:36:23 +08:00
|
|
|
# CHECK: 00000000000000e9 .text 00000000 end
|
2016-07-15 19:20:04 +08:00
|
|
|
|
|
|
|
.global _start
|
|
|
|
_start:
|
|
|
|
nop
|