Hi,<br><br>I'm trying to instrument llvm bytecodes using opt. I performed the following commands:<br><br>llvm-gcc -g -emit-llvm test.c -c -o test.bc<br>opt -insert-edge-profiling test.bc -o output.bc<br>llc output.bc -o output.s<br>
gcc output.s -o test.out<br><br>However, it can't find symbol llvm_start_edge_profiling.<br><br>/tmp/ccw7GH4c.o: In function `main':<br>/home/raul/LLVM/tests//test.c:8: undefined reference to `llvm_start_edge_profiling'<br>
collect2: ld returned 1 exit status<br><br>Does anybody know which is the problem?<br>I'm using LLVM 2.1 and LLVM-GCC 4.2 (both were built from SVN source code).<br clear="all"><br>Thanks in advance, Raul.<br><br>-- <br>
Raul Fernandes Herbster<br>Embedded and Pervasive Computing Laboratory - <a href="http://embedded.ufcg.edu.br">embedded.ufcg.edu.br</a><br>Electrical Engineering and Informatics Center - CEEI<br>Federal University of Campina Grande - UFCG - <a href="http://www.ufcg.edu.br">www.ufcg.edu.br</a><br>
Caixa Postal 10105<br>58109-970 Campina Grande - PB - Brasil