Files
llvm/test/CodeGen/BPF
Yonghong Song 87a5aa4fc5 [BPF] Fix .BTF.ext reloc type assigment issue
Commit f1db33c5c1 ("[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>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@350637 91177308-0d34-0410-b5e6-96231b3b80d8
2019-01-08 16:36:06 +00:00
..
2016-11-20 02:25:00 +00:00
2018-04-03 03:56:37 +00:00
2017-09-18 23:29:36 +00:00
2015-01-24 18:20:52 +00:00
2016-11-20 02:25:00 +00:00