[GOLD][PATCH PROPOSAL] fix segmentation fault in the Task_function class
Ian Lance Taylor
iant@google.com
Tue Feb 23 17:46:00 GMT 2010
Viktor Kutuzov <vkutuzov@accesssoftek.com> writes:
> this patch proposal fixes a bug, which causes a segmentation fault in
> the Task_function class if a name for non-existed input object was
> passed and an additional command-line argument was used (except -o). I
> got this situation with the following command:
>
> arm-none-linux-gnueabi-ld missed-module.o -r -o module-out.o
>
> ../install.binutils.gold.crossarm/bin/arm-none-linux-gnueabi-ld:
> error: cannot open missed-module.o: No such file or directory
> Segmentation fault
Thanks for pointing that out. I fixed the problem in a slightly
different way, as follows.
Ian
2010-02-23 Viktor Kutuzov <vkutuzov@accesssoftek.com>
Ian Lance Taylor <iant@google.com>
* gold.cc (queue_middle_tasks): If no input files were opened,
exit.
* workqueue.h (Task_function::Task_function): Assert that there is
a blocker.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-diff
Size: 1331 bytes
Desc: crash
URL: <https://sourceware.org/pipermail/binutils/attachments/20100223/8edc51b4/attachment.bin>
More information about the Binutils
mailing list