Displaying 3 results from an estimated 3 matches for "sig_sysreturn".
2008 Nov 24
1
[LLVMdev] how to track down a kernel miscompilation?
One other note I forgot...
sig_sysreturn (arch/x86/kernel/signal_32.c) has a magic fudge factor
to fix up stack layout differences between llvm and gcc. If when you
hit userspace you get signal handling errors, look at the frame
addresses printed out and adjust the fudge factor to make the frame
addresses match. (the code automatically...
2008 Nov 24
0
[LLVMdev] how to track down a kernel miscompilation?
For people who want to try hacking on the linux kernel with llvm, here
is a head start:
http://llvm.org/~alenhar2/k.tbz
This is a 2.6.27.5 kernel with a .config file for qemu/kvm with virtio
devices (I also think it will work with the default devices). The
build process uses llvm-gcc -> opt -> llc so you can add your own
(per-file) passes to the build process or debug specific passes.
2008 Nov 24
4
[LLVMdev] how to track down a kernel miscompilation?
Hi,
I am trying to build the Linux kernel with LLVM.
'ARCH=um' appears to work, now I am trying to get 'ARCH=x86' to work.
So far it seems there is something wrong with the boot vga code (it
finds no video modes), the acpi code, and the serial console code.
I am now trying to compile drivers/ with llvm-gcc and the rest with
gcc-4.2 (I have a wrapper script), I am compiling to