[LLVMbugs] [Bug 1910] New: llvm-ld does not support linking archives with mixed . bc and .o objects

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sat Jan 12 20:53:52 PST 2008


http://llvm.org/bugs/show_bug.cgi?id=1910

           Summary: llvm-ld does not support linking archives with mixed .bc
                    and .o objects
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: tomas.l.olsen at gmail.com
                CC: llvmbugs at cs.uiuc.edu


Given the three attached files, this sequence of commands should show the
problem:

[tomas at myhost llbug1]$ llvm-as bug1.ll
[tomas at myhost llbug1]$ llvm-as bug2.ll
[tomas at myhost llbug1]$ gcc bug.c -c
[tomas at myhost llbug1]$ llvm-ld -native -o=first bug1.bc bug2.bc bug.o
[tomas at myhost llbug1]$ ./first
42 123
[tomas at myhost llbug1]$ llvm-ar rsv bug.a bug2.bc bug.o
llvm-ar: creating bug.a
[tomas at myhost llbug1]$ llvm-ld -native -o=second bug1.bc bug.a
/tmp/ccy317Eb.o: In function `main':
(.text+0x5): undefined reference to `getint_c'
collect2: ld returned 1 exit status
llvm-ld:
[tomas at myhost llbug1]$ 

would be really nice if this worked!


-- 
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