Displaying 1 result from an estimated 1 matches for "test1_pass".
2011 Sep 22
1
[LLVMdev] lli fine, compiled segfault?
...y 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