[fpc-devel] MIPS

Mark Morgan Lloyd markMLl.fpc-devel at telemetry.co.uk
Fri Jul 1 08:21:01 CEST 2011


Pierre Free Pascal wrote:
>   I had a MIS related question:
> 
>   using fullcycle I got a warinng about
> defdynlinker not being initialized fro mips in systems/t_linux.pas unit.
> 
> Is this a correct fix, 
> Index: t_linux.pas
> ===================================================================
> --- t_linux.pas (révision 17859)
> +++ t_linux.pas (copie de travail)
> @@ -192,6 +192,9 @@
>  {$endif FPC_ARMEL}
>  {$endif arm}
> 
> +{$ifdef mips}
> +     defdynlinker:='/lib/ld-linux.so';
> +{$endif mips}
>       {
>         Search order:
>           glibc 2.1+
> 
> 
> or can somoeone tell us what the default linker is for a mips linux
> machine?
>  
> Pierre Muller

On Debian "Squeeze" mipsel (using Marco's suggestion):

$ ldd `which gcc`
         libc.so.6 => /lib/libc.so.6 (0x2aab0000)
         /lib/ld.so.1 (0x55550000)

$ ls -l /lib/ld.so.1
lrwxrwxrwx 1 root root 12 May 13 11:32 /lib/ld.so.1 -> ld-2.11.2.so

I don't know whether the symlink is resolved during linkage or at load 
time. I've certainly found a case on Solaris where the former applied 
for system libraries.

-- 
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]



More information about the fpc-devel mailing list