[LLVMbugs] [Bug 2883] New: linking of alias symbol with weak symbol fails

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Fri Oct 10 22:27:51 PDT 2008


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

           Summary: linking of alias symbol with weak symbol fails
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Linker
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: daniel at zuster.org
                CC: llvmbugs at cs.uiuc.edu


Given a.ll
--
define weak void @foo() {
ret void
}
--
and b.ll
--
@foo = alias void ()* @fooreal
define void @fooreal() {
}
--
then linking a.ll with b.ll succeeds, but linking b.ll with
a.ll fails:
--
ddunbar at bohr:~/foo$ llvm-as -f a.ll && llvm-as -f b.ll && llvm-link -f -o c.bc
a.bc b.bc
ddunbar at bohr:~/foo$ llvm-as -f a.ll && llvm-as -f b.ll && llvm-link -f -o c.bc
b.bc a.bc
llvm-link: link error in 'a.bc': Function-Alias Collision on 'foo': symbol
multiple defined
ddunbar at bohr:~/foo$ 
--


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