Changeset View
Changeset View
Standalone View
Standalone View
lld/test/ELF/lto/bpf-same-sec.ll
- This file was added.
; REQUIRES: bpf | |||||
; RUN: llvm-as %S/Inputs/bpf-same-sec-1.ll -o %t1.bc | |||||
; RUN: llvm-as %S/Inputs/bpf-same-sec-2.ll -o %t2.bc | |||||
; RUN: ld.lld -r %t1.bc %t2.bc -o %t3 | |||||
; RUN: llvm-objdump -d --no-show-raw-insn %t3 | FileCheck %s | |||||
; RUN: llvm-readelf -r %t3 | FileCheck -check-prefix=RELOC %s | |||||
; RUN: llvm-readelf -x ".BTF" %t3 | FileCheck -check-prefix=BTF %s | |||||
; CHECK: <bar>: | |||||
; CHECK: call [[#]] | |||||
; CHECK: call -1 | |||||
; CHECK: <add>: | |||||
; CHECK: <foo>: | |||||
; RELOC: R_BPF_64_32 {{[0-9a-f]+}} foo | |||||
; '9feb0100' below is the first 4 bytes of the .BTF section, | |||||
; representing BTF Magic value (0x9feb in little endian format), | |||||
; version (0x1) and flags (0x0). | |||||
; BTF: 9feb0100 | |||||
; BTF-NOT: 9feb0100 |