bug-gnulib
[Top][All Lists]
Advanced

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

Re: linker-script.m4?


From: Bruno Haible
Subject: Re: linker-script.m4?
Date: Mon, 2 Mar 2009 12:27:49 +0100
User-agent: KMail/1.9.9

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)? 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]?

I'm asking because linker scripts only work with GNU ld (I guess).

Bruno

[1] http://gcc.gnu.org/wiki/Visibility
[2] 
http://www.linuxshowcase.org/2000/2000papers/papers/browndavid/browndavid_html/




reply via email to

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