From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Lance Taylor To: kk@ddeorg.soft.net Cc: gas2@cygnus.com, bfd@cygnus.com Subject: Re: Problems with the GNU linker on mips... Date: Sat, 30 Jan 1999 10:03:00 -0000 Message-id: <199901301736.MAA19237@subrogation.cygnus.com> References: <199901301059.QAA11917@bombay.ddeorg.soft.net> X-SW-Source: 1999/msg00009.html 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: 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