ld.gold: internal error in make_view, at fileread.cc:458

Ian Lance Taylor iant@google.com
Mon May 30 00:39:00 GMT 2011


Arkadiusz Miskiewicz <arekm@maven.pl> writes:

> uClibc does one test and checks exit status. For gold it causes internal 
> error.
>
> binutils 2.21.51.0.9 on x86_64 linux.
>
> $ ld.gold --hash-style=gnu -o /dev/null -b binary /dev/null
> ld.gold: internal error in make_view, at fileread.cc:458
> zsh: exit 1     ld.gold --hash-style=gnu -o /dev/null -b binary /dev/null
>
> $ ld.bfd --hash-style=gnu -o /dev/null -b binary /dev/null
> ld.bfd: warning: cannot find entry symbol _start; not setting start address

Thanks for the bug report.  Fixed with this patch, committed to both
mainline and the 2.21 branch.

Ian


2011-05-29  Ian Lance Taylor  <iant@google.com>

	* binary.cc (Binary_to_elf::sized_convert): Don't crash if the
	binary input file is empty.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-patch
Size: 1300 bytes
Desc: patch
URL: <https://sourceware.org/pipermail/binutils/attachments/20110530/838942f0/attachment.bin>


More information about the Binutils mailing list