Looks like the INTERPOSE mapfile keyword does not work for shared
libraries, does it?
ld: fatal: mapfile: 3: interposition symbols can only be defined when
building a dynamic executable
ld: fatal: mapfile: 4: interposition symbols can only be defined when
building a dynamic executable

cat mapfile
SUNWprivate_1.1 {
global:
                getval = INTERPOSE;
                putval = INTERPOSE;
};

2010/2/13 Ali Bahrami <Ali.Bahrami at sun.com>:
> ????? ???????????? wrote:
>>
>> Do I have to use -z interpose when I link a shared library if it
>> wishes to interpose a single libc symbol or can I accomplish this via
>> a linker mapfile?
>
>   OpenSolaris has some mapfile based per-symbol interpose support:
>
>
>
>  
> http://docs.sun.com/app/docs/doc/819-0690/gejgf?l=en&a=view&q=mapfile+INTERPOSE
>
> I'm not sure if S10 has that, but I think it doesn't. If you're
> targeting OpenSolaris/Nevada (I imagine you are, given this forum),
> then have a look at that material.
>
> - Ali
>



-- 
      ,   _                                    _   ,
     { \/`o;====-    Olga Kryzhanovska   -====;o`\/ }
.----'-/`-/     olga.kryzhanovska at gmail.com   \-`\-'----.
 `'-..-| /     Solaris/BSD//C/C++ programmer   \ |-..-'`
      /\/\                                     /\/\
      `--`                                      `--`

Reply via email to