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

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Fri May 19 01:08:38 PDT 2017


>> 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.

George.


More information about the llvm-commits mailing list