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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
                CC: [email protected]


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:
--
[EMAIL PROTECTED]:~/foo$ llvm-as -f a.ll && llvm-as -f b.ll && llvm-link -f -o 
c.bc
a.bc b.bc
[EMAIL PROTECTED]:~/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
[EMAIL PROTECTED]:~/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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to