OSDN Git Service

[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)
commit8507eca1647118e73435b0ce1de8a1952a021d01
treee5ee6ab3d79ffd905a192c1745248ef4883ae937
parentcf10da4c220d7dc4ec9c0abb7814cd3fbe78b66f
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@365618 91177308-0d34-0410-b5e6-96231b3b80d8
lib/MC/ELFObjectWriter.cpp
test/MC/ELF/basic-elf-32.s
test/MC/ELF/compression.s
test/MC/ELF/relocation-386.s
test/MC/Mips/elf-relsym.s
test/MC/Mips/xgot.s