https://llvm.org/bugs/show_bug.cgi?id=27896
Bug ID: 27896 Summary: Create unique name for weak symbol on coff. Product: libraries Version: trunk Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: MC Assignee: unassignedb...@nondot.org Reporter: rafael.espind...@gmail.com CC: david.majne...@gmail.com, llvm-bugs@lists.llvm.org, r...@google.com Classification: Unclassified Given --------------------------- .data .weak a a: .long 42 --------------------------- MC always creates a .weak.a.default. That means that given any two files that define a "weak" symbol "a", there will be a link error (duplicated .weak.a.default). With gas one gets slightly more unique names. It looks like it uses the previous global. Given -------------------------- .global foobar .data .weak a a: .long 42 ------------------------- it produces .weak.a.foobar and given ------------------------- .global zed .data .weak a a: .long 42 ------------------------- it produces .weak.a.zed. I don't think how we get a more unique name is particularly important, just that we do. -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs