non-contiguous elf test

Alan Modra amodra@gmail.com
Tue Mar 17 12:37:22 GMT 2020
On Tue, Mar 17, 2020 at 11:56:17AM +0100, Christophe Lyon wrote:
> On Mon, 16 Mar 2020 at 12:09, Alan Modra <amodra@gmail.com> wrote:
> >
> > On Mon, Mar 16, 2020 at 11:21:01AM +0100, Christophe Lyon wrote:
> > > OK, sure, but what's the recommended way of issuing a fatal error message?
> > > I'd like to stop processing at that point (and similarly in the other
> > > parts of my patch where I use abort)
> >
> > In the linker, use %F in an error message output by einfo.  Lots of
> > examples in ldelf.c.
> >
> Thanks, I'd missed that indeed.
> 
> But what about the code in elfNN-XXX ?
> It uses _bfd_error_handler instead of einfo, which does not support %F AFAICT

It could use info->callbacks->einfo.

-- 
Alan Modra
Australia Development Lab, IBM



More information about the Binutils mailing list