[PATCH] D36508: [ELF] - Linkerscript: Add `~` as separate math token.

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 5 01:05:34 PDT 2017


>> grimar added a comment.
>>
>> In https://reviews.llvm.org/D36508#836495, @ruiu wrote:
>>
>>> bfd's behavior seems more conservative than gold, and if GNU linkers are inconsistent, I'd make lld compatible with conservative one, so I wouldn't make this change.
>>
>>
>> I see, though it looks more like a bug of bfd. It accepts `!foo` but does not like `~foo` for probably no reason.
>
>I am very late in the thread, but I agree with Rui that in LikerScript
>issues following bfd is probably better.
>
>If you want, reporting a bug on both bfd ld and gold might be a good way
>of figuring out what the intended behavior is.
>
>Cheers,
>Rafael

OK, I'll recheck with the latest gold/bfd available and probably report bugs for them then.

George.


More information about the llvm-commits mailing list