[PATCH 0/4] OpenRISC binutils updates and new relocs
Stafford Horne
shorne@gmail.com
Mon Oct 1 07:08:00 GMT 2018
On Fri, Sep 28, 2018 at 04:39:03PM +0100, Nick Clifton wrote:
>
> > To produce these errors I need to change the code, Using abort we see:
> >
> > /home/shorne/work/gnu-toolchain/local/lib/gcc/or1k-elf/9.0.0/../../../../or1k-elf/bin/ld: \
> > BFD (GNU Binutils) 2.31.51.20180927 internal error, \
> > aborting at ../../binutils-gdb/bfd/elf32-or1k.c:1152 in or1k_final_link_relocate
>
[...]
> Depending upon where you are in your code, if you have access to the link_info
> structure you can use its einfo() routine instead of bfd_error_handler. This
> has the advantage that it allows a %X formatting directive, which causes the
> program to terminate with an error exit code.
OK, thanks for the info. I tested it out using einfo(), it does exit with an
error code, but it doesn't produce the line numbers and function name that
abort() gives us. I am sure I could make it do it, but for now I will use the
error message + abort() as it gives me what I would want to see in a bug report
:).
V2 of the patch should be coming up soon.
-Stafford
More information about the Binutils
mailing list