[AArch64] [Windows] Error out on unsupported symbol locations
authorMartin Storsjö <martin@martin.st>
Tue, 4 Aug 2020 11:41:48 +0000 (14:41 +0300)
committerMartin Storsjö <martin@martin.st>
Thu, 6 Aug 2020 06:23:46 +0000 (09:23 +0300)
commitf5e6fbac24f198d075a7c4bc0879426e79040bcf
treeab1d55bd412cb3d47af720a7d7f3f5cbe9e483a5
parent5eedc01a82436f3c4cc9da1db62d850fec35d62b
[AArch64] [Windows] Error out on unsupported symbol locations

These might occur in seemingly generic assembly. Previously when
targeting COFF, they were silently ignored, which certainly won't
give the right result. Instead clearly error out, to make it clear
that the assembly needs to be adjusted for this target.

Also change a preexisting report_fatal_error into a proper error
message, pointing out the offending source instruction. This isn't
strictly an internal error, as it can be triggered by user input.

Differential Revision: https://reviews.llvm.org/D85242
llvm/lib/Target/AArch64/MCTargetDesc/AArch64WinCOFFObjectWriter.cpp
llvm/test/MC/AArch64/coff-relocations-diags.s [new file with mode: 0644]