------- Additional Comments From hjl dot tools at gmail dot com  2010-01-15 
13:13 -------
(In reply to comment #2)
> The sysv gabi says: 
> "When the link editor combines several relocatable object files, it does not
> allow multiple definitions of STB_GLOBAL symbols with the same name. On the
> other hand, if a defined global symbol exists, the appearance of a weak symbol
> with the same name will not cause an error. The link editor honors the global
> definition and ignores the weak ones. Similarly, if a common symbol exists 
> (that
> is, a symbol whose st_shndx field holds SHN_COMMON), the appearance of a weak
> symbol with the same name will not cause an error. The link editor honors the
> common definition and ignores the weak ones."
> 
> I interpret "ignores" to mean that whether the weak symbol is present or not,
> the end result should be the same.  So I think HJ's 9670 patch to merge
> visibilty from the weak symbol to the strong one is totally bogus.

Well, is

---
extern int foo (void) __attribute__((weak,__visibility__ ("hidden")));
---

valid or not?

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
  BugsThisDependsOn|                            |9679


http://sourceware.org/bugzilla/show_bug.cgi?id=11175

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to