Changeset View
Changeset View
Standalone View
Standalone View
lld/test/ELF/bpf-lto-local.s
- This file was added.
// REQUIRES: bpf | |||||
// RUN: llvm-as %S/Inputs/bpf-lto-local-1.ll -o %t1 | |||||
// RUN: llvm-as %S/Inputs/bpf-lto-local-2.ll -o %t2 | |||||
// RUN: ld.lld -r %t1 %t2 -o %t3 | |||||
// RUN: llvm-objdump -d --no-show-raw-insn %t3 | FileCheck %s | |||||
// RUN: llvm-readelf -r %t3 | FileCheck -check-prefix=RELOC %s | |||||
// CHECK: section .text: | |||||
// CHECK: r0 = 0 ll | |||||
// CHECK: section sec2: | |||||
// CHECK: call -1 | |||||
// CHECK: call 2 | |||||
// RELOC: .rel.text | |||||
// RELOC: R_BPF_64_64 {{[0-9a-f]+}} sec3 | |||||
// RELOC: .relsec2 | |||||
// RELOC: R_BPF_64_32 {{[0-9a-f]+}} sec1 | |||||
// RELOC: R_BPF_64_32 {{[0-9a-f]+}} sec1 |