[LoongArch] Emit R_LARCH_64_PCREL relocation for FK_Data_8 when IsPCRel is true
authorWeining Lu <luweining@loongson.cn>
Wed, 28 Jun 2023 00:25:11 +0000 (08:25 +0800)
committerWeining Lu <luweining@loongson.cn>
Thu, 29 Jun 2023 03:16:54 +0000 (11:16 +0800)
commit42cb3c6346fcd2799060189e399a5b494687f40b
treef390cd157d052ba3311cdd8d09ccfa026abf9628
parent02f94a655fb6ee494df6cd9e136e7ab713be2043
[LoongArch] Emit R_LARCH_64_PCREL relocation for FK_Data_8 when IsPCRel is true

Reviewed By: xen0n, MaskRay, hev

Differential Revision: https://reviews.llvm.org/D153872
llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchELFObjectWriter.cpp
llvm/test/MC/LoongArch/Relocations/sub-expr.s [new file with mode: 0644]