Subject: Re: BFD/ld lossage on MIPS with NEW_TOOLCHAIN
To: None <,,>
From: Rafal Boni <>
List: tech-toolchain
Date: 10/04/2001 21:32:14
In message <>, you write: 

-> Folks:
-> 	I seem to be tripping over a nasty ld (actually, BFD) bug on my SGI
-> 	(mips) box with the new toolchain.
-> 	So attached are two things:
-> 		(1) My patch, which is less than clean in that it still
-> 		    contains debug printf's strewn about, but has the gist
-> 		    of the proposed fix.  Line numbers may not match 100%
-> 		    vs. the in-tree files since I removed one or two bits
-> 		    of purely debugging additions by hand from the patch.

Though I'm not sure if this change is to blame, my build of the world on
sgimips with the new toolchain (with this patch) seems to have generated
stuffed-up crtstuff files (I think specifically crtbegin.o).

I'd dig further, but I need to get cracking on some other stuff that needs
to be done this week as I'm on the road most of next week.  It looks like
what happens is that somehow __register_frame_info (which exists in the
crtstuff as a weak symbol) isn't being resolved correctly and thus the
program croaks.

Along the way, I've also either confused the runtime linker or tripped
over a bug there that causes it to crash when faced with undefined weak

Heh, now I'm really in over my head in toolchain goo... (and starting to
carry on quite a good conversation with myself here 8-)


Rafal Boni