[llvm-bugs] [Bug 27896] New: Create unique name for weak symbol on coff.
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu May 26 13:42:34 PDT 2016
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: unassignedbugs at nondot.org
Reporter: rafael.espindola at gmail.com
CC: david.majnemer at gmail.com, llvm-bugs at lists.llvm.org,
rnk at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160526/2a3c7c8e/attachment.html>
More information about the llvm-bugs
mailing list