GNU Linker on MIPS - Interesting observation...

Koundinya.K kk@ddeorg.soft.net
Thu Feb 4 23:27:00 GMT 1999


Dear Ian & Ralf,

	First of all thanks for all your responses to mails.

I got the most recent binutils compiled and running here on my MIPS System. 
As again I took the famous "hello world" test program compiled it to test 
the linker. I got the error....

dynamic linker: ./test: unidentifiable procedure reference (address = 
0x40062cd8) Killed

Then after trying to trace at the system call level using the truss utility 
that I have , I added an explicit _exit(0) in the test program and compiled 
it.

To my big surprise program executed normally Which meant that the linker did 
not get killed. For the first time I could see the linker produce output on 
my system.

test.c
******
main()
{
	printf("Hello World !!\n");
	_exit(0);
}

gcc -v test.c -o test


------------ log of test.c compilation ## Earlier stuff not shown 
-------------

 /usr/local/mips-dde-sysv4.2MP/bin/as -v -o /var/tmp/ccEYpuNk.o 
/var/tmp/ccmtjbG6.s
GNU assembler version 990118 (mips-dde-elf) using BFD version 990118
 /usr/local/mips-dde-sysv4.2MP/bin/ld -V -Qy -o test /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/lib /var/tmp/ccEYpuNk.o -lgcc -L/usr/lib -lc -lgcc /lib/crtn.o
GNU ld version 2.9.4 (with BFD 990118)
  Supported emulations:
   elf32bsmip

-------------------Log ends here --------------------------------------------
--

star:1185 [/tmp] ./test 
Hello World !!


Could there be any problem with the start up files that are being used ???.

I would be happy If you could provide me with any comments of your's.

Thanks again in advance. 

With best regards

Koundinya



P.S: 
	I think i am Missing out one some of the discussion that went on ...I have 
not received any mail like this...

ian@cygnus.com said:
-> On Tue, Feb 02, 1999 at 09:37:17PM -0500, Ian Lance Taylor wrote:
->    > I don't know of any system which uses a zero value for __start.
-> Most
->    > systems protect the zero page to catch null pointer dereferences.
->  Why
->    > do you expect __start to be zero?  What sorts of problems are you
->    > seeing?


Has this mail been posted to the gas2 or bfd lists. Or is it between You 
people.. I did not receive any mails regarding this discussion . You could 
probably forward those mails to me if you don't mind.
	




More information about the Bfd mailing list