[llvm-bugs] [Bug 48820] .symver foo, foo at v1 is mishandled

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Sep 6 12:46:59 PDT 2021


https://bugs.llvm.org/show_bug.cgi?id=48820

Fangrui Song <i at maskray.me> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|INVALID                     |FIXED

--- Comment #2 from Fangrui Song <i at maskray.me> ---
Update: I implemented https://reviews.llvm.org/D107235 ("[ELF] Combine foo at v1
and foo with the same versionId if both are defined").

> **dropping the special rule from GNU ld will be safe.**

OK. There is one exception: glibc.
Filed https://sourceware.org/bugzilla/show_bug.cgi?id=28197 compat_symbol
should migrate to .symver *, *, remove


The glibc usage also confused gold:
https://sourceware.org/bugzilla/show_bug.cgi?id=28196


https://maskray.me/blog/2020-11-26-all-about-symbol-versioning "Why is .symver
xxx, foo at v1 bad with a defined symbol?" has more discussions.

-- 
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/20210906/1005d1b2/attachment.html>


More information about the llvm-bugs mailing list