[PATCH] D36508: [ELF] - Linkerscript: Add `~` as separate math token.
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 6 04:51:48 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.
>
>Thanks!
>
>Cheers,
>Rafael
Posted here:
1) "Bug 22267 - ld.bfd does not accept "foo = ~0xFF" in linker script but accepts "foo = ~ 0xFF""
(https://sourceware.org/bugzilla/show_bug.cgi?id=22267)
2) "Bug 22268 - ld.gold accepts "foo = ~0xFF" in linker script while ld.bfd - not."
(https://sourceware.org/bugzilla/show_bug.cgi?id=22268)
George.
More information about the llvm-commits
mailing list