This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Avoid link error with Solaris ld and local COMDAT group signature symbols (PR gas/12181)
On Mon, Nov 15, 2010 at 08:48:33PM +0100, Rainer Orth wrote:
> + /* Before Solaris 11 build 154, Sun ld rejects local group
> + signature symbols, so make them global hidden instead. */
> + symbol_get_bfdsym (sy)->flags |= BSF_OBJECT | BSF_GLOBAL;
> + S_SET_OTHER (sy, STV_HIDDEN);
It occurs to me that making the symbol BSF_GLOBAL may cause link
errors. BSF_WEAK would be better, assuming that the Solaris linker
likes that.
--
Alan Modra
Australia Development Lab, IBM