]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/elf/x86_64-kinds.test
Vendor import of lld trunk r233088:
[FreeBSD/FreeBSD.git] / test / elf / x86_64-kinds.test
1 REQUIRES: x86
2
3 RUN: lld -flavor gnu -target x86_64-linux -o %t1 %p/Inputs/relocs.x86-64 \
4 RUN:   -e _start -static
5 RUN: llvm-objdump -d %t1 | FileCheck %s -check-prefix=RELOCS
6
7 RUN: lld -flavor gnu -target x86_64-linux --output-filetype=yaml -e _start -static \
8 RUN:    %p/Inputs/relocs.x86-64 | FileCheck %s -check-prefix=X86_64
9
10 RELOCS: ELF64-x86-64
11
12 // R_X86_64_32S
13 RELOCS: c7 04 25
14 RELOCS-NOT: 00 00 00 00
15 RELOCS: 05 00 00 00 movl
16
17 // R_X86_64_PC32
18 RELOCS: e8
19 RELOCS-NOT: 00 00 00 00
20 RELOCS: callq
21
22 X86_64: R_X86_64_32S
23 X86_64: R_X86_64_PC32