[PATCH] D13645: [ELF2] - implemented default enterpteter for X86, X86_64, PPC and AArch64
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 13 07:35:08 PDT 2015
On Tue, Oct 13, 2015 at 7:25 AM, George Rimar <grimar at accesssoftek.com>
wrote:
> >От: Rui Ueyama [ruiu at google.com]
> >Отправлено: 12 октября 2015 г. 17:49
> >Кому: George Rimar; rafael.espindola at gmail.com; ruiu at google.com
> >Копия: hfinkel at anl.gov; amara.emerson at arm.com; renato.golin at linaro.org;
> llvm-commits at lists.llvm.org
> >Тема: Re: [PATCH] D13645: [ELF2] - implemented default enterpteter for
> X86, X86_64, PPC and AArch64
> >
> >ruiu added a comment.
> >
> >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.
> >
> >
> >http://reviews.llvm.org/D13645
>
> Ok, I agree.
> 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.
> Or is it just supposed to be hardcoded for different architectures in
> Driver.cpp for now ?
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151013/abf42c5f/attachment.html>
More information about the llvm-commits
mailing list