2015-01-24 11:55:22 +08:00
|
|
|
REQUIRES: x86
|
2015-01-24 06:32:12 +08:00
|
|
|
|
2013-04-05 02:59:24 +08:00
|
|
|
RUN: lld -flavor gnu -target x86_64-linux -o %t1 %p/Inputs/relocs.x86-64 \
|
|
|
|
RUN: -e _start -static
|
2013-02-15 04:32:00 +08:00
|
|
|
RUN: llvm-objdump -d %t1 | FileCheck %s -check-prefix=RELOCS
|
2013-01-07 14:58:53 +08:00
|
|
|
|
2013-09-23 12:24:15 +08:00
|
|
|
RUN: lld -flavor gnu -target x86_64-linux --output-filetype=yaml -e _start -static \
|
2013-01-26 07:48:58 +08:00
|
|
|
RUN: %p/Inputs/relocs.x86-64 | FileCheck %s -check-prefix=X86_64
|
|
|
|
|
2013-01-07 16:00:04 +08:00
|
|
|
RELOCS: ELF64-x86-64
|
|
|
|
|
2013-01-07 14:58:53 +08:00
|
|
|
// R_X86_64_32S
|
|
|
|
RELOCS: c7 04 25
|
|
|
|
RELOCS-NOT: 00 00 00 00
|
|
|
|
RELOCS: 05 00 00 00 movl
|
|
|
|
|
|
|
|
// R_X86_64_PC32
|
|
|
|
RELOCS: e8
|
|
|
|
RELOCS-NOT: 00 00 00 00
|
|
|
|
RELOCS: callq
|
2013-01-26 07:48:58 +08:00
|
|
|
|
|
|
|
X86_64: R_X86_64_32S
|
|
|
|
X86_64: R_X86_64_PC32
|