<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 25, 2014 at 12:23 AM, Shankar Easwaran <span dir="ltr"><<a href="mailto:shankare@codeaurora.org" target="_blank">shankare@codeaurora.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div text="#000000" bgcolor="#FFFFFF">$ld.gold -T y1<br>
    ld.gold: error: y1:1:29: syntax error, unexpected QUOTED_STRING,
    expecting ')' or ','<br>
    ld.gold: fatal error: unable to parse script file y1<br>
    <br>
    $ld -T y1<br>
    ld:y1:1: syntax error<br>
    <br>
    I want to remain consistent with this behavior in the case of lld as
    well, and fix the GNU ld bugs in lld as well so that behavior is
    consistent when you use a arbitrary mix of quoted/unquoted strings.</div></blockquote></div><br>This is *not* because the quotes aren't allowed. The error is because without the quotes, 'foo,' is lexed as the argument to the command. This is why adding whitespace before the ',' fixes the issue, as Rui has repeatedly pointed out.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">Try this example:</div><div class="gmail_extra"><br></div><div class="gmail_extra">OUTPUT_FORMAT("elf64-powerpc", elf64-powerpc, "elf64-powerpcle");<br>
</div><div class="gmail_extra"><br></div><div class="gmail_extra">Here I get:</div><div class="gmail_extra">ld.gold: error: x:1:47: syntax error, unexpected QUOTED_STRING, expecting ','<br></div><div class="gmail_extra">
<br></div><div class="gmail_extra">Note that this points to the third argument's open " as the error. The problem isn't that the first argument is quoted or the second argument isn't quoted, it is that the ',' is considered part of the string. Adding just a space before the ',' will fix this error.</div>
<div class="gmail_extra"><br></div></div>