[llvmlinux] Latest LLVMLinux Git not booting (both from build architecture and source tree)

Jason Gionta jjgionta at ncsu.edu
Sun Nov 2 22:28:45 UTC 2014


Thanks David for the reference. It seems similar if not directly related. I
am seeing that the arch/x86/boot/memory.o has the wrong calling convention
before it gets linked. So the llvm backend certainly won't have enough
information about different memcpy calling convention.

On Sun, Nov 2, 2014 at 3:19 PM, David Woodhouse <dwmw2 at infradead.org> wrote:

>
> > I believe I have found the problem. The issue is that the memcpy being
> > linked in ./arch/x86/boot/main.c and ./arch/x86/boot/memory.c, etc to
> > create ./arch/x86/boot/setup.bin is different then the one being
> compiled.
> > Specifically, memcpy from ./arch/x86/boot/copy.S gets linked into
> > setup.elf/setup.bin and memcpy from ./arch/x86/boot/string.h is used when
> > compiling in ./arch/x86/boot/main.c and ./arch/x86/boot/memory.c. The
> > parameters for memcpy for string.h are sent via the stack while the
> memcpy
> > from copy.S are passed via registers...
>
>
> Isn't this http://llvm.org/bugs/show_bug.cgi?id=3997 ?
>
> --
> dwmw2
>
>


-- 
Jason Gionta
Cyber Defense Lab
North Carolina State University
jjgionta at ncsu.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfoundation.org/pipermail/llvmlinux/attachments/20141102/25c9d43d/attachment.html>


More information about the LLVMLinux mailing list