[lld] r202111 - [LinkerScript] OUTPUT_FORMAT: Parse Quoted Strings

Shankar Easwaran shankare at codeaurora.org
Mon Feb 24 23:24:41 PST 2014


On 2/25/2014 1:14 AM, Rui Ueyama wrote:
> On Mon, Feb 24, 2014 at 10:52 PM, Shankar Easwaran
> <shankare at codeaurora.org>wrote:
>
>> Hi Chandler, Rui,
>>
>> For example :-
>>
>> OUTPUT_FORMAT(x, "y", "z")
>>
>> We need to display an error for the above case, while
>>
>> OUTPUT_FORMAT("x", "y", "z") produces no error.
>>
> Both gave me error...
I am not sure about your ld version, but here it is :-

$cat x
OUTPUT_FORMAT(x, "y", "z");
$ld -T x
ld:x:1: syntax error
$cat y
OUTPUT_FORMAT("x", "y", "z");
$ld -T y
ld: no input files

Shankar Easwaran




More information about the llvm-commits mailing list