[PATCH] D13645: [ELF2] - implemented default enterpteter for X86, X86_64, PPC and AArch64

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 13 12:49:14 PDT 2015


grimar added inline comments.

================
Comment at: ELF/Driver.cpp:60
@@ +59,3 @@
+  case EM_386:
+    return "/lib/ld-linux-x86-64.so.2";
+  case EM_AARCH64:
----------------
ruiu wrote:
> emaste wrote:
> > This is not valid on non-Linux
> What's the value for FreeBSD?
> 
> We don't have to make this function complete from the beginning. I'm fine with this as long as we can add new entries to this function.
Yes, it is not valid on non-linux. But currently it looks there is no good way to find which OS we are targeting. So it is just basic implementation to support .interp section.


http://reviews.llvm.org/D13645





More information about the llvm-commits mailing list