summaryrefslogtreecommitdiffstats
path: root/lld/test/elf/x86_64-kinds.test
blob: 2844fc7e918da957b98be5b2358955bdf3c554ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
RUN: lld -flavor gnu -target x86_64-linux -o %t1 %p/Inputs/relocs.x86-64 \
RUN:   -e _start -static
RUN: llvm-objdump -d %t1 | FileCheck %s -check-prefix=RELOCS

RUN: lld -flavor gnu -target x86_64-linux --output-filetype=yaml -e _start -static \
RUN:    %p/Inputs/relocs.x86-64 | FileCheck %s -check-prefix=X86_64

RELOCS: ELF64-x86-64

// 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

X86_64: R_X86_64_32S
X86_64: R_X86_64_PC32
OpenPOWER on IntegriCloud