bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/26978] Inconsistency for defined foo@v1 and foo@@v1


From: hjl.tools at gmail dot com
Subject: [Bug ld/26978] Inconsistency for defined foo@v1 and foo@@v1
Date: Tue, 01 Dec 2020 17:27:56 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=26978

--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Fangrui Song from comment #2)
> > Correct behavior.  Otherwise, we will get
> 
> This is a surprising behavior. Normally, STB_GLOBAL wins over STB_WEAK. Did
> you argue that in the case of @ and @@ definitions, the rule "@@ wins over
> @" taking precedence?
> 
> I would think the two bits are independent. global foo@v1 + weak foo@@v1 =>
> global foo@@v1.

If we allow this to link, weak foo@@v1 will be in .dynsym which overrides
the non-weak foo@v1.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]