[ELF] Loose a condition for relocation with a symbol
authorNikola Prica <nikola.prica@rt-rk.com>
Wed, 10 Jul 2019 11:17:48 +0000 (11:17 +0000)
committerNikola Prica <nikola.prica@rt-rk.com>
Wed, 10 Jul 2019 11:17:48 +0000 (11:17 +0000)
commitfb163b4b207c832431a16840161a7528a6137322
treeb2d9914c2b1f6acdb817bdfd4ee95d9b5ca8d819
parent110f97632e119d289e4bd9b5c01f0a300b8d2185
[ELF] Loose a condition for relocation with a symbol

Deleted code was introduced as a work around for a bug in the gold linker
(http://sourceware.org/PR16794). Test case that was given as a reason for
this part of code, the one on previous link, now works for the gold.
This condition is too strict and when a code is compiled with debug info
it forces generation of numerous relocations with symbol for architectures
that do not have relocation addend.

Reviewers: arsenm, espindola

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D64327

llvm-svn: 365618
llvm/lib/MC/ELFObjectWriter.cpp
llvm/test/MC/ELF/basic-elf-32.s
llvm/test/MC/ELF/compression.s
llvm/test/MC/ELF/relocation-386.s
llvm/test/MC/Mips/elf-relsym.s
llvm/test/MC/Mips/xgot.s