This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Question: BFD_FAIL


msnyder@sonic.net writes:

> Are we meant to assume that BFD_FAIL does not return?

That would be an unwise assumption.  As you have seen, it does
return.

> void
> _bfd_set_gp_value (bfd *abfd, bfd_vma v)
> {
>   if (! abfd)
>     BFD_FAIL ();
>   if (abfd->format != bfd_object)
>     return;

Yep, looks wrong.  Came in here:

2003-05-17  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>

	* bfd.c (_bfd_get_gp_value): Prevent illegal access for abfd null
	pointers.
	(_bfd_set_gp_value): Likewise.

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]