1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00
llvm-mirror/test/CodeGen/BPF
Yonghong Song 620741cb36 [BPF] Fix .BTF.ext reloc type assigment issue
Commit f1db33c5c1a9 ("[BPF] Disable relocation for .BTF.ext section")
assigned relocation type R_BPF_NONE if the fixup type
is FK_Data_4 and the symbol is temporary.
The reason is we use FK_Data_4 as a fixup type
for insn offsets in .BTF.ext section.

Just checking whether the symbol is temporary is not enough.
For example, .debug_info may reference some strings whose
fixup is FK_Data_4 with a temporary symbol as well.

To truely reflect the case for .BTF.ext section,
this patch further checks that the section associateed with the symbol
must be SHF_ALLOC and SHF_EXECINSTR, i.e., in the text section.
This fixed the above-mentioned problem.

Signed-off-by: Yonghong Song <yhs@fb.com>
llvm-svn: 350637
2019-01-08 16:36:06 +00:00
..
BTF [BPF] Generate BTF DebugInfo under BPF target 2018-12-19 16:40:25 +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
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_trivial.ll
reloc-btf.ll [BPF] Fix .BTF.ext reloc type assigment issue 2019-01-08 16:36:06 +00:00
reloc.ll
remove_truncate_1.ll
remove_truncate_2.ll
remove_truncate_3.ll
remove_truncate_4.ll
remove_truncate_5.ll
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
vararg1.ll
warn-call.ll
warn-stack.ll
xadd.ll