BFD 2.16.1 "assertion failure" and "internal error"

Nick Clifton nickc@redhat.com
Wed Jul 6 10:28:00 GMT 2005


Hi Daniel,

> Attached are two tarballs, one containing the .o files generated by g++, 
> the other containing those generated by the DEC c++ compiler.
> 
> Once untared, do the following:
>
> bash-2.04$ ld -r -o partial.o a.o b.o
> bash-2.04$ objcopy partial.o
> 
> The g++ compiled objects will produce this error:
> 
> BFD: BFD 2.16.1 internal error, aborting at      
> ../../binutils-2.16.1/bfd/coff-alpha.c line 635 in alpha_adjust_reloc_in

OK - I was able to reproduce this error and I am checking in the 
attached patch to stop the abort.  The problem is that the object files 
contain relocs that are not (currently) supported by the linker.

May I ask, which version of g++ are you using and how was it configured ?

> The dec c++ compiled objs will produce:
> 
> BFD: BFD 2.16.1 assertion fail ../../binutils-2.16.1/bfd/coff-alpha.c:606
> BFD: BFD 2.16.1 assertion fail ../../binutils-2.16.1/bfd/coff-alpha.c:606

I could not reproduce this failure, but only because I could not build a 
toolchain that would recognise the binaries.  So please could you tell 
me how you configured a toolchain that did understand these object files ?

Cheers
   Nick

bfd/ChangeLog
2005-07-06  Nick Clifton  <nickc@redhat.com>

	* coff-alpha.c (alpha_adjust_reloc_in): Issue an informative error
	message if an unknown reloc is encountered.
	(alpha_relocate_section): Likewise.

	* ecoff.c (_bfd_ecoff_write_object_contents): Cope with a reloc
	with a missing howto field.



-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: bfd.patch
URL: <https://sourceware.org/pipermail/binutils/attachments/20050706/2fda6103/attachment.ksh>


More information about the Binutils mailing list