[LLVMdev] lli fine, compiled segfault?
ret val
retval386 at gmail.com
Thu Sep 22 09:42:55 PDT 2011
I have a simple C test file I run a fairly simple Pass on. When I try
to run the generated bitcode(after running the pass) with lli all is
fine. When I try to compile this down to a actual elf executable I get
a segfault.
clang -emit-llvm -S test1.c -o test1.bc
opt -load ~/llvm/Release+Asserts/lib/LLVMHello.so -hello < test1.bc >
test1_pass.bc
lli test1_pass.bc # All is fine
llc test1_pass.bc -o test1_pass.s
gcc test1_pass.s -o test1_pass.elf
./test1_pass.elf # SEGFAULT
I'm I compiling this wrong? I'm not sure how else I could get a error
with this or what could be wrong with my current method
Thanks
More information about the llvm-dev
mailing list