[MC][X86] Support .reloc *, BFD_RELOC_{NONE,8,16,32,64}, *
authorFangrui Song <i@maskray.me>
Sat, 6 Mar 2021 05:01:32 +0000 (21:01 -0800)
committerFangrui Song <i@maskray.me>
Sat, 6 Mar 2021 05:31:05 +0000 (21:31 -0800)
commit4f7562d52fe40fb5974360f391d5ed8bbbcdbd60
tree0042e13e5cc41c0825b8bec7eb7f67908024bf76
parent56ed64dfa9c7faff1f0eb7dbd968b1b33a0b052a
[MC][X86] Support .reloc *, BFD_RELOC_{NONE,8,16,32,64}, *

The names are unfortunate, but BFD_RELOC_NONE provides a generic way indicating
a dependency between two sections, which is useful for ld --gc-sections.
See https://sourceware.org/bugzilla/show_bug.cgi?id=27530
llvm/lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp
llvm/test/MC/X86/reloc-directive-elf-32.s
llvm/test/MC/X86/reloc-directive-elf-64.s