[ELF] - Adjust rangeToString to report ranges in a different format.
authorGeorge Rimar <grimar@accesssoftek.com>
Wed, 7 Mar 2018 17:54:25 +0000 (17:54 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Wed, 7 Mar 2018 17:54:25 +0000 (17:54 +0000)
commitbf3c3846733c97e890c30f98233475625fe20979
tree8baa8bab0e6f058c2046335d768238b59efb141c
parentc3c15dd64084d19388d1e6ba3968280b128c0463
[ELF] - Adjust rangeToString to report ranges in a different format.

It was raised during the review of D43819.

LLD usually use [X, Y] for reporting ranges, like below:
"relocation R_386_16 out of range: 65536 is not in [0, 65535]"

Patch changes rangeToString() to do the same.

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

llvm-svn: 326918
lld/ELF/Writer.cpp
lld/test/ELF/linkerscript/overlapping-sections.s