<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Oct 13, 2015 at 7:25 AM, George Rimar <span dir="ltr"><<a href="mailto:grimar@accesssoftek.com" target="_blank">grimar@accesssoftek.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">>От: Rui Ueyama [<a href="mailto:ruiu@google.com">ruiu@google.com</a>]<br>
>Отправлено: 12 октября 2015 г. 17:49<br>
>Кому: George Rimar; <a href="mailto:rafael.espindola@gmail.com">rafael.espindola@gmail.com</a>; <a href="mailto:ruiu@google.com">ruiu@google.com</a><br>
>Копия: <a href="mailto:hfinkel@anl.gov">hfinkel@anl.gov</a>; <a href="mailto:amara.emerson@arm.com">amara.emerson@arm.com</a>; <a href="mailto:renato.golin@linaro.org">renato.golin@linaro.org</a>; <a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a><br>
>Тема: Re: [PATCH] D13645: [ELF2] - implemented default enterpteter for X86, X86_64, PPC and AArch64<br>
<span class="">><br>
>ruiu added a comment.<br>
><br>
>Target does not seems to be the right place to put OS-specific things. It is just architecture-specific (e.g. ELF on x86-64). I'd to write this in Driver.cpp.<br>
><br>
><br>
><a href="http://reviews.llvm.org/D13645" rel="noreferrer" target="_blank">http://reviews.llvm.org/D13645</a><br>
<br>
</span>Ok, I agree.<br>
But what is the best way to find out which interpreter to use then ? I dont think we have something like triple to know that.<br>
Or is it just supposed to be hardcoded for different architectures in Driver.cpp for now ?</blockquote></div><br></div><div class="gmail_extra">I don't think I'd call it hard-coded, but basically yes. I'd define static StringRef getDefaultInterp() in Driver.cpp which returns a string according to Config->ElfKind and Config->EMachine.</div></div>