This is the mail archive of the gas2@sourceware.cygnus.com mailing list for the gas2 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Problems with the GNU linker on mips...


   Date: Sat, 30 Jan 1999 16:29:54 +0530
   From: "Koundinya.K" <kk@ddeorg.soft.net>

   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:
      elf32bsmip
   /usr/local/mips-dde-sysv4.2MP/bin/ld: bfd assertion fail 
   .../../gas-990118/bfd/elf32-mips.c:5750

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
   ld.so: ./tt1: relocation error: symbol not found: __rld_map
   Killed

   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.

Ian