Skip to content

linking of alias symbol with weak symbol fails #3255

@llvmbot

Description

@llvmbot
Bugzilla Link 2883
Resolution FIXED
Resolved on Nov 07, 2018 00:22
Version trunk
OS Linux
Reporter LLVM Bugzilla Contributor
CC @asl

Extended Description

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@bohr:/foo$ llvm-as -f a.ll && llvm-as -f b.ll && llvm-link -f -o c.bc a.bc b.bc
ddunbar@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@bohr:~/foo$

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzilla

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions