[MC][Mips] Support .reloc *, BFD_RELOC_{NONE,16,32,64}, *
authorFangrui Song <i@maskray.me>
Thu, 30 Jun 2022 23:39:23 +0000 (16:39 -0700)
committerFangrui Song <i@maskray.me>
Thu, 30 Jun 2022 23:39:23 +0000 (16:39 -0700)
commitdd58735a1d44095f0827bd6f7624a1eb26c1054b
treee991e8b0914f0de7f6b02ee1b6c90355688db4f6
parentadbb46ea651cb44b6d1661ab31389db41bd1f314
[MC][Mips] Support .reloc *, BFD_RELOC_{NONE,16,32,64}, *

... to match most other common architectures which already support BFD_RELOC_*.
BFD_RELOC_NONE provides a generic way indicating a dependency between two
sections and is useful for some instrumentations which encode symbol index
information (e.g. `.cg_profile`).
llvm/lib/Target/Mips/MCTargetDesc/MipsAsmBackend.cpp
llvm/lib/Target/Mips/MCTargetDesc/MipsELFObjectWriter.cpp
llvm/test/MC/Mips/reloc-directive.s