[ELF] - Use error() instead of fatal() during relaxation of R_X86_64_GOTTPOFF
authorGeorge Rimar <grimar@accesssoftek.com>
Thu, 22 Dec 2016 11:05:05 +0000 (11:05 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Thu, 22 Dec 2016 11:05:05 +0000 (11:05 +0000)
commitf39cdea879a8a8ca369b610030b66a55a3c743f3
treeea80d9574278f0a580a91889885f602fbda9eb8d
parent4c134ea3b8c7cc5b85dc2d9e8584f7694a7e6387
[ELF] - Use error() instead of fatal() during relaxation of R_X86_64_GOTTPOFF

This is last known noticable fatal() in target.cpp.
We also have other ones for unknown relocations or
creating unknown targets, but that one can be just error I think.

Used yaml2obj to generate test.

Differential revision: https://reviews.llvm.org/D28049

llvm-svn: 290335
lld/ELF/Target.cpp
lld/test/ELF/invalid/Inputs/broken-relaxation-x64.elf [new file with mode: 0644]
lld/test/ELF/invalid/broken-relaxation-x64.s [new file with mode: 0644]