http://llvm.org/bugs/show_bug.cgi?id=4813
Summary: llvm-ld does not work with bytecode archives (bca)
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Created an attachment (id=3384)
--> (http://llvm.org/bugs/attachment.cgi?id=3384)
The bytecode archive that presents this problem.
The following does not work:
>$ opt -insert-edge-profiling gzip.1.o -f -o gzip.2.o
>$ llvm-ld -link-as-library -disable-opt -o gzip.3.o gzip.2.o \
/localtmp/astifter/llvm/llvm-van-install/lib/libprofile_rt.bca
>$ llc gzip.3.o -f -o gzip.5.s
>$ gcc -g gzip.5.s -o gzip
/tmp/cchEXazr.o: In function `main':
/nfs/a5/astifter/astifter/spec_cpu_2000_img/benchspec/CINT2000/164.gzip/run/00000001//spec.c:253:
undefined reference to `llvm_start_edge_profiling'
collect2: ld returned 1 exit status
The function llvm_start_edge_profiling is in libprofile_rt.bca but it seems
that it is not linked in the second step.
This bug was discussed at the llvm-commits list starting with
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090817/084957.html
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs