aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorYonghong Song <yhs@fb.com>2019-01-08 16:36:06 +0000
committerYonghong Song <yhs@fb.com>2019-01-08 16:36:06 +0000
commit0d99031de0306b2ab1a21e2cd8b599acf796b6b4 (patch)
tree012c93fefbb8f6a317a0c2ce982651cdec20b119 /clang/lib/CodeGen/CodeGenModule.cpp
parentb1ce7c8c01d1ad84075ac3b84db4064da6da0629 (diff)
downloadllvm-0d99031de0306b2ab1a21e2cd8b599acf796b6b4.zip
llvm-0d99031de0306b2ab1a21e2cd8b599acf796b6b4.tar.gz
llvm-0d99031de0306b2ab1a21e2cd8b599acf796b6b4.tar.bz2
[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
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions