This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Ping: RFA: provide a way for a BFD program to notice assertions. Use it in gld.
On Thu, Apr 26, 2012 at 04:48:24AM +0200, Hans-Peter Nilsson wrote:
> > 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>
OK.
--
Alan Modra
Australia Development Lab, IBM