2016-08-23 02:44:04 +08:00
|
|
|
# REQUIRES: x86
|
|
|
|
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
|
|
|
|
# RUN: ld.lld %t.o -o %t
|
|
|
|
# RUN: llvm-objdump -t %t | FileCheck %s
|
2017-01-29 01:48:21 +08:00
|
|
|
# CHECK: 0000000000200040 .text 00000000 .hidden __ehdr_start
|
2016-08-23 02:44:04 +08:00
|
|
|
|
|
|
|
.text
|
|
|
|
.global _start, __ehdr_start
|
|
|
|
_start:
|
2016-11-14 17:33:38 +08:00
|
|
|
.quad __ehdr_start
|
2016-11-15 16:19:02 +08:00
|
|
|
|
|
|
|
# RUN: ld.lld -r %t.o -o %t.r
|
|
|
|
# RUN: llvm-objdump -t %t.r | FileCheck %s --check-prefix=RELOCATABLE
|
|
|
|
|
|
|
|
# RELOCATABLE: 0000000000000000 *UND* 00000000 __ehdr_start
|