[lsb-discuss] --dynamic-linker=/lib/ld-lsb.so.3 not considered with -shared

Manjinder Singh MSingh at flexerasoftware.com
Wed Aug 11 06:17:37 PDT 2010


Hi lsb-discuss,

I am building the shared library with -shared and linker option
--dynamic-linker=/lib/ld-lsb.so.3. But shared library is still showing
dependency on /lib/ld-linux.so.2. 
Please help me in resolving the issue.
I tried changing the default spec with adding external spec:-
*link:
%{!static:--eh-frame-hdr} -m %(link_emulation) %{shared:%(shared)}}
%{!shared:     %{!ibcs:       %{!static:     %{rdynamic:-export-dynamic}
%{!dynamic-linker:-dynamic-linker %(dynamic_linker)}}
%{static:-static}}}

*dynamic_linker:
/lib/ld-lsb.so.3

*shared:
--dynamic-linker=%(dynamic_linker) -shared
~

It is working but showing warning:-
/.../binutils-2.19/bin/ld: warning: cannot find entry symbol _start;
defaulting to 08048360
 
When I see check information on shared library with "file temp.so" it
shows :-
temp.so: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV),
dynamically linked (uses shared libs), stripped

Regards,
Maan



More information about the lsb-discuss mailing list