1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00
llvm-mirror/test/CodeGen/BPF
Yonghong Song 1e7c1b5239 [BPF] Fix bpf llvm-objdump issues.
Commit https://reviews.llvm.org/D57939 ("[DWARF] Refactor
RelocVisitor and fix computation of SHT_RELA-typed relocation entries)
made a change for relocation resolution when operating
on an object file.

The change unfortunately broke BPF as given SymbolValue (S) and
Addent (A), previously relocation is resolved to
    S + A
and after the change, it is resolved to
    S

This patch fixed the issue by resolving relocation correctly.

It looks not all relocation resolution reaches here and I did not
trace down exactly when. But I do find if the object file includes
codes in two different ELF sections than default ".text",
the above bug will be triggered.

This patch included a trivial two function source code to
demonstrate this issue. The relocation for .debug_loc is resolved
incorrectly due to this and llvm-objdump cannot display source
annotated assembly.

Differential Revision: https://reviews.llvm.org/D66372

llvm-svn: 369199
2019-08-17 22:12:00 +00:00
..
BTF [BPF] Support for compile once and run everywhere 2019-07-09 15:28:41 +00:00
CORE [Transforms] Do not drop !preserve.access.index metadata 2019-08-03 23:41:26 +00:00
32-bit-subreg-alu.ll
32-bit-subreg-cond-select.ll
32-bit-subreg-load-store.ll
32-bit-subreg-peephole.ll
alu8.ll
atomics.ll
basictest.ll
byval.ll
cc_args_be.ll
cc_args.ll
cc_ret.ll
cmp.ll
dwarfdump.ll
elf-symbol-information.ll
ex1.ll
fi_ri.ll
inline_asm.ll
inlineasm-output-template.ll [AsmPrinter] refactor to support %c w/ GlobalAddress' 2019-04-26 18:45:04 +00:00
intrinsics.ll
lit.local.cfg
load.ll
loops.ll
many_args1.ll
many_args2.ll
mem_offset_be.ll
mem_offset.ll
memcpy-expand-in-order.ll
objdump_atomics.ll
objdump_cond_op_2.ll
objdump_cond_op.ll
objdump_imm_hex.ll
objdump_intrinsics.ll
objdump_static_var.ll [BPF] Don't fail for static variables 2019-02-27 05:36:15 +00:00
objdump_trivial.ll
objdump_two_funcs.ll [BPF] Fix bpf llvm-objdump issues. 2019-08-17 22:12:00 +00:00
reloc-btf-2.ll [BPF] Support for compile once and run everywhere 2019-07-09 15:28:41 +00:00
reloc-btf.ll [llvm-objdump] - Print relocation record in a GNU format. 2019-05-07 13:14:18 +00:00
reloc.ll [llvm-objdump] - Print relocation record in a GNU format. 2019-05-07 13:14:18 +00:00
remove_truncate_1.ll
remove_truncate_2.ll
remove_truncate_3.ll
remove_truncate_4.ll
remove_truncate_5.ll Revert r354244 "[DAGCombiner] Eliminate dead stores to stack." 2019-02-18 08:24:29 +00:00
rodata_1.ll
rodata_2.ll
rodata_3.ll
rodata_4.ll
sanity.ll
sdiv_error.ll
select_ri.ll
setcc.ll
shifts.ll
sockex2.ll
struct_ret1.ll
struct_ret2.ll
undef.ll [DAGCombiner] If a TokenFactor would be merged into its user, consider the user later. 2019-03-13 17:07:09 +00:00
vararg1.ll
warn-call.ll
warn-stack.ll
xadd_legal.ll bpf: enable sub-register code-gen for XADD 2019-02-28 19:21:28 +00:00
xadd.ll bpf: enable sub-register code-gen for XADD 2019-02-28 19:21:28 +00:00