Problem with linker with binutils-040414

H. J. Lu hjl@lucon.org
Mon Apr 19 14:35:00 GMT 2004


On Mon, Apr 19, 2004 at 02:20:42PM +0100, Nick Clifton wrote:
> Hi Guys,
> 
> > The [BFD] library should never abort
> 
> Alan Modra wrote:
> 
> >>Yes, and gcc should never ICE.  The situation is the same, I think.
> >>   
> >>
> Similar, but
>  a) GCC handles its ICEs more gracefully than does BFD.  (Well unless 
> we improve BFD).
>  b) GCC is not a library, it is an entire application.  It is able to 
> detect and handle is internal errors in an entirely consistent manner.
> 
> BFD is a library, and it should not dictate error handling policy to its 
> users.  Imagine if GCC used the BFD library but could not generate its 
> ICE messages because the BFD library aborted before giving GCC the 
> chance to intervene.

Gcc deserves whatever it gets in this case since it misuses a library
function.


H.J.



More information about the Binutils mailing list