[ELF] - Add separate form for -R alias.
authorGeorge Rimar <grimar@accesssoftek.com>
Wed, 9 Nov 2016 16:38:15 +0000 (16:38 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Wed, 9 Nov 2016 16:38:15 +0000 (16:38 +0000)
commit470de711778d64bf4b83f9ab945a5b24158ecc3c
tree2fbe5cb57527ff33165312038cd3955a738aa10a
parenta540997ce476944edc5962ffec6649b1640a057f
[ELF] - Add separate form for -R alias.

During link of devel/chrpath (FreeBSD port), found next issue:
/usr/bin/ld: error: unclosed comment in a linker script
/usr/bin/ld: error: line 1: unknown directive: �
/usr/bin/ld: error: �\16

Problem was not obvious and the reason was that we did not accept
the separate form of -R. While invocation line contained it:
cc -Wl,-R /usr/local/lib -o prog prog.c

CPIO file produced contained /usr/local/lib file.
Which looks because of reasons above
contained inside the content of whole lib folder,
and it then was passed as an input and
proccessed as linker script.

llvm-svn: 286378
lld/ELF/Options.td