Problems with the GNU linker on mips...

Ian Lance Taylor
Sat Jan 30 10:03:00 GMT 1999

   Date: Sat, 30 Jan 1999 16:29:54 +0530
   From: "Koundinya.K" <>

   I applied this change and generated the new linker, and as usual I tried to 
   run the test program . The linking gave me the following message  ...

   ------------- Clip of the compile log of gcc -v t.c -o tt1 

    /usr/local/mips-dde-sysv4.2MP/bin/ld -V -Qy -o tt1 /lib/crt1.o /lib/crti.o 
   /lib/values-Xa.o -L/usr/local/lib/gcc-lib/mips-dde-sysv4.2MP/egcs-2.91.57 
   -L/usr/local/mips-dde-sysv4.2MP/lib -L/usr/local/lib /var/tmp/ccjlVzGK.o 
   -lgcc -L/usr/lib -lc -lgcc /lib/crtn.o
   GNU ld version 2.9.4 (with BFD 990118)
     Supported emulations:
   /usr/local/mips-dde-sysv4.2MP/bin/ld: bfd assertion fail 

Which assertion is that?  There is no assertion on line 5750 of the
elf32-mips.cfile here, probably because of the patches you have
applied.  Looking at the code there may help you figure out the
problem.  Or it may be unimportant.

   -------------------------------Ends here ------------------------------------

   and when I try to run

   ../tt1 ./tt1: relocation error: symbol not found: __rld_map

   I am not able to trace out this. Any pointers / hints to get out of this 
   problem will be helpful.

Search for "__rld_map" in elf32-mips.c.  Some of the associated code
is SGI_COMPAT, and some is not.  Probably, it all should be.

You are probably going to have to do some debugging and programming to
get this code to work for you.


More information about the Gas2 mailing list