[MC][RISCV] Make .reloc support arbitrary relocation types
authorFangrui Song <maskray@google.com>
Sun, 29 Mar 2020 17:01:01 +0000 (10:01 -0700)
committerFangrui Song <maskray@google.com>
Fri, 10 Apr 2020 17:43:53 +0000 (10:43 -0700)
commita7aaaf701618bc3bbdf7cb60467512a4250e27f5
treea1c490c44cb1789a3a55c642b2c53265fc94b14c
parent4593e4131affa84e61d7b6844be409ba46d29f11
[MC][RISCV] Make .reloc support arbitrary relocation types

Similar to D76746 (ARM), D76754 (AArch64) and llvmorg-11-init-6967-g152d14da64c (x86)

Differential Revision: https://reviews.llvm.org/D77018
llvm/lib/Target/RISCV/MCTargetDesc/RISCVAsmBackend.cpp
llvm/lib/Target/RISCV/MCTargetDesc/RISCVAsmBackend.h
llvm/lib/Target/RISCV/MCTargetDesc/RISCVELFObjectWriter.cpp
llvm/test/MC/RISCV/reloc-directive-err.s [new file with mode: 0644]
llvm/test/MC/RISCV/reloc-directive.s [new file with mode: 0644]