Ping: RFA: provide a way for a BFD program to notice assertions. Use it in gld.

Hans-Peter Nilsson hans-peter.nilsson@axis.com
Thu Apr 26 06:32:00 GMT 2012


> From: Hans-Peter Nilsson <hp@axis.com>
> Date: Wed, 18 Apr 2012 06:48:22 +0200

> ld/ChangeLog:
> 	Make bfd asserts cause linker errors.
> 	* ldmain.c (default_bfd_assert_handler): New variable.
> 	(ld_bfd_assert_handler): New function.
> 	(main): Call bfd_set_assert_handler.
> 
> bfd/ChangeLog:
> 	Provide a way for programs to recognize BFD_ASSERT calls.
> 	* bfd.c (bfd_assert_handler_type): New API type.
> 	(bfd_set_assert_handler, bfd_get_assert_handler): New API functions.
> 	(_bfd_assert_handler): New variable.
> 	(_bfd_default_assert_handler): New function.
> 	(bfd_assert): Call _bfd_assert_handler, not _bfd_error_handler.
> 	* libbfd-in.h (_bfd_assert_handler): Declare.
> 	* libbfd.h, bfd-in2.h: Regenerate.

Ping! <http://sourceware.org/ml/binutils/2012-04/msg00200.html>

brgds, H-P



More information about the Binutils mailing list