[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: linker-script.m4?
From: |
Simon Josefsson |
Subject: |
Re: linker-script.m4? |
Date: |
Mon, 02 Mar 2009 12:47:11 +0100 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.90 (gnu/linux) |
Bruno Haible <address@hidden> writes:
> Simon Josefsson wrote:
>> The version script file is documented in the LD manual, but a short
>> example would be:
>>
>> SHISHI_0.0 {
>> global:
>> shishi*;
>>
>> local:
>> *;
>> };
>
> Could you please explain what the entire thing is about? Is it about
> hiding some symbols from "nm libshishi.so", for which gcc offers a solution
> at source code level (see [1] and gnulib's m4/visibility.m4)?
No, that's not the primary motivation, but it is a useful side-effect.
If it didn't have that side-effect, hiding the symbols would need to be
done in some other way.
> Or is it about allowing multiple versions of the same symbol to exist
> in the same shared library, something which is supported only by glibc
> and Solaris [2]?
Yes, that is one reason.
> I'm asking because linker scripts only work with GNU ld (I guess).
Yes, I think so.
Further, shared library versioning can be useful when maintaining
packages in GNU/Linux distributions, and it seems people in Debian
prefers that shared libraries always use versioning. See for example:
http://article.gmane.org/gmane.comp.gnu.gss.general/139
Of course a good reference where this is discussed is:
http://people.redhat.com/drepper/dsohowto.pdf
/Simon
- linker-script.m4?, Simon Josefsson, 2009/03/02
- Re: linker-script.m4?, Bruno Haible, 2009/03/02
- Re: linker-script.m4?,
Simon Josefsson <=
- Re: shared library symbol versioning, Bruno Haible, 2009/03/02
- Re: shared library symbol versioning, Simon Josefsson, 2009/03/02
- Re: shared library symbol exports and versioning, Bruno Haible, 2009/03/02
- Re: shared library symbol exports and versioning, Simon Josefsson, 2009/03/02
- Re: shared library symbol exports and versioning, Bruno Haible, 2009/03/02
- Re: shared library symbol exports and versioning, Simon Josefsson, 2009/03/03
- Re: shared library symbol exports and versioning, Simon Josefsson, 2009/03/03
- Re: shared library symbol exports and versioning, Bruno Haible, 2009/03/03
- Re: shared library symbol exports and versioning, Simon Josefsson, 2009/03/03
- Re: linker-script.m4?, Mike Frysinger, 2009/03/02