[llvm-bugs] [Bug 48361] foo at v1 and foo@@v1 aren't handled properly
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Dec 10 11:48:26 PST 2020
https://bugs.llvm.org/show_bug.cgi?id=48361
Fangrui Song <i at maskray.me> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|NEW |RESOLVED
Assignee|unassignedbugs at nondot.org |i at maskray.me
--- Comment #1 from Fangrui Song <i at maskray.me> ---
Fixed by https://reviews.llvm.org/D92259 (the title is not generic: actually
foo@@v1 and defined foo at v1 are also merged)
cc -o x main.o libfoo.so -Wl,-R,. -fuse-ld=lld; ./x => works
The resolution in the thread
https://sourceware.org/pipermail/binutils/2020-December/114400.html is that
weak foo@@v1 and strong foo at v1 is treated as the same symbol. @@ is a separate
attribute which can decorate the symbol, while STB_GLOBAL prevails STB_WEAK as
usual.
--
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/20201210/5d319c62/attachment-0001.html>
More information about the llvm-bugs
mailing list