[gold commit] PR gold/20693: Fix bug where -u option with empty archive results in internal error

Cary Coutant ccoutant@gmail.com
Mon Nov 21 22:10:00 GMT 2016


This patch fixes a bug where the -u option (or EXTERN statement in a
linker script) causes an internal error if the only input file is an
empty archive. Gold had logic to force the default target when there
is no input, but the logic came after we register the undefined
symbols.

-cary


2016-11-21  Cary Coutant  <ccoutant@gmail.com>

gold/
PR gold/20693
        * gold.cc (queue_middle_tasks): Force valid target earlier.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr20693.patch
Type: application/octet-stream
Size: 1629 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20161121/5b989c42/attachment.obj>


More information about the Binutils mailing list