[LLVMbugs] [Bug 4813] New: llvm-ld does not work with bytecode archives (bca)

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Fri Aug 28 05:04:19 PDT 2009


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: unassignedbugs at nondot.org
        ReportedBy: e0325716 at student.tuwien.ac.at
                CC: llvmbugs at cs.uiuc.edu, e0325716 at student.tuwien.ac.at


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.



More information about the llvm-bugs mailing list