Re: ld-linux.so.2 replaced with ld-linux-x86-64.so.2

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: ld-linux.so.2 replaced with ld-linux-x86-64.so.2

John Pierce
> It is in the GCC specs file, in the link-arch* stanzas, generally
> looking vaguely like this:
>
> -m elf32_sparc -Y P,/usr/lib %{shared:-shared}   %{!shared:     %{!ibcs:       %{!static:         %{rdynamic:-export-dynamic}         %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}}         %{static:-static}}}

My specs were changed to reflect the correct location.

> (Of course, changing the name of the dynamic linker will render programs
> you compile pretty much unrunnable on other systems which name it
> differently.)

Yeah, such is the case with precompilied java which uses
/lib64/ld-linux-x86-64.so.2, but a simlink does the trick

Seing that ldd is a script, I just changed the linker from $(32) $(64)
to just $(64)
So problem fixed.

Thanks.