[PATCH] D32991: [ELF] Initial migration of AVR target

Leslie Zhai via llvm-commits llvm-commits at lists.llvm.org
Fri May 19 02:28:08 PDT 2017



在 2017年05月19日 16:08, George Rimar 写道:
>>> grimar added a comment.
>>>
>>> I tried to run llvm-mc to check which relocations are produced here but got an error:
>>>
>>> /home/umb/LLVM/llvm-build/bin/llvm-mc: : error: unable to get target for 'avr-unknown-linux', see --version and --triple.
>>>
>>> Could anyone point me what is wrong ?
>> AVR is not in LLVM_ALL_TARGETS. I wonder if we should change that
>> before this.
> Ah, thanks !
>
>> BTW, this patch has to edit test/lit.cfg to add avr to
>> config.available_features or the test will never run.
>>
>> Cheers,
>> Rafael
> FWIW in one of comments (it was edited later) of this patch I saw error message like "error: failed to compute relocation..." that comes from DWARFContextInMemory which LLD uses for error reporting. I suppose LLD currently unable to report correct line numbers for AVR because of that. Looks just AVR target should be implemented in RelocVisitor.
Where is RelocVisitor? could you give me a hint? thanks!

>
> George.

-- 
Regards,
Leslie Zhai - a LLVM fans https://reviews.llvm.org/p/xiangzhai/





More information about the llvm-commits mailing list