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

Rafael Avila de Espindola via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 4 14:50:34 PDT 2017


George Rimar via Phabricator <reviews at reviews.llvm.org> writes:

> 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


More information about the llvm-commits mailing list