From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f48e5,bfab62f9409822b6,start X-Google-Attributes: gidf48e5,public X-Google-Thread: 1051a8,bfab62f9409822b6,start X-Google-Attributes: gid1051a8,public X-Google-Thread: 10b612,bfab62f9409822b6,start X-Google-Attributes: gid10b612,public X-Google-Thread: 1164f8,bfab62f9409822b6,start X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1993-12-06 13:50:25 PST Xref: gmd.de comp.sys.mips:1519 comp.sys.dec:12258 comp.unix.ultrix:12125 Newsgroups: comp.sys.mips,comp.sys.dec,comp.unix.ultrix,comp.sys.sgi Path: gmd.de!urmel.informatik.rwth-aachen.de!uni-paderborn.de!zib-berlin.de!xlink.net!howland.reston.ans.net!europa.eng.gtefsd.com!uunet!virtech!dwex From: dwex@aib.com (David E. Wexelblat) Subject: GCC-produced code causes MIPS native loader to dump core... Message-ID: Organization: Virtual Technologies Inc. Date: Sun, 5 Dec 1993 15:44:51 GMT I just sent this to the GCC bug report address. Perhaps someone here has some input on this problem as well... This problem has been demonstrated on a DEC MIPS box running Ultrix 4.3, and on an SGI MIPS box running IRIX 4.0.5, with GCC 2.4.5 and 2.5.5. Compile the following program: #include main() { printf("hello world, proc table = 0x%ld\n",_procedure_table); } with GCC. The native loader (/bin/ld) will dump core. The following workaround has been discovered: > If you take every object file produced by gcc (after the tfile conversion) > and run it through the native mips linker (without gcc intervention), it > seems to clean up whatever mess gcc made: > > /usr/bin/ld -r -o junk.o foo.o > mv junk.o foo.o > -- David Wexelblat (703) 430-9247 Fax: (703) 450-4560 AIB Software, Inc., 46030 Manekin Plaza, Suite 160, Dulles, VA 20166 Formerly Virtual Technologies, Inc. Mail regarding XFree86 should be sent to "...Laughing as they danced, highest colours touching others. Did her eyes at the turn of the century tell me plainly How we'll meet, how we'll love? Oh, let life so transform me." -- Yes, "Turn of the Century"