Displaying 1 result from an estimated 1 matches for "print_linux".
2011 Dec 16
2
[LLVMdev] striping of stdio information in llvm-gcc and clang
...wing on linux to cross-compile it for Sparc architecture:
clang -m32 -c print.c -emit-llvm -o print.bc
(or llvm-gcc -m32 -c print.c -emit-llvm -o print.bc)
llvm-dis < print.bc -o print2.bc
llc -march=sparc -mcpu=v8 print2.bc -o print_s.s
if I compile it on Sparc using gcc 3.4
gcc print_s.s -o print_linux
it gives me the following error:
Undefined first referenced
symbol in file
stderr /var/tmp//ccGa4Zxh.o
ld: fatal: Symbol referencing errors. No output written to print_linux
collect2: ld returned 1 exit status
I comp...