Can I break the libc symbol protection without marking my libraries as
interposers?

2010/2/13 Ali Bahrami <Ali.Bahrami at sun.com>:
> ????? ???????????? wrote:
>>
>> Is LD_NODIRECT broken in B129? I cannot get it working with a library
>> which should interpose getenv() in libc.
>
>
> As far as I know, it is not broken. However, as of
> snv_90, you cannot force libc to use your version of getenv()
> because the exported symbols from libc are declared
> to be protected:
>
>    6689238 libc needs global protection against ld.so.1
>
>  
> http://bugs.opensolaris.org/bugdatabase/view_bug.do;jsessionid=231d7369a24450e7c4577d235b07?bug_id=6689238
>
> Making your copy an interposer *would* make it take
> precedence in your application's code.
>
> - Ali
>



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

Reply via email to