[LLVMbugs] [Bug 303] NEW: linux binfmt_misc support for llvm
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Thu Mar 25 12:13:32 PST 2004
http://llvm.cs.uiuc.edu/bugs/show_bug.cgi?id=303
Summary: linux binfmt_misc support for llvm
Product: Website
Version: unspecified
Platform: PC
URL: http://www.tat.physik.uni-
tuebingen.de/~rguenth/linux/binfmt_misc.html
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P2
Component: Documentation
AssignedTo: unassignedbugs at nondot.org
ReportedBy: jack-llvm-cs-uiuc-edu at mudshark.org
You can register lli as an interpreter for files with magic of "llvm" using the
binfmt_misc module in the linux kernel:
[root at ice:fs]$ mount -t binfmt_misc none /proc/sys/fs/binfmt_misc
[root at ice:binfmt_misc]$ echo ':llvm:M::llvm::/path/to/lli:' >
/proc/sys/fs/binfmt_misc/register
Then you don't need the shell script wrapper. :)
--
[jack at ice:c]$ cat hello.c
#include <stdio.h>
int main() {
printf("hello world\n");
return 0;
}
[jack at ice:c]$ llvmgcc -o hello hello.c
[jack at ice:c]$ ./hello.bc
hello world
--
--Jack
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
More information about the llvm-bugs
mailing list