This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Ping: RFA: provide a way for a BFD program to notice assertions. Use it in gld.
- From: Hans-Peter Nilsson <hans-peter dot nilsson at axis dot com>
- To: binutils at sourceware dot org
- Date: Thu, 26 Apr 2012 04:48:24 +0200
- Subject: Ping: RFA: provide a way for a BFD program to notice assertions. Use it in gld.
> 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