[gold commit] PR 18866: Fix regression introduced by fix for PR 18703

Cary Coutant ccoutant@gmail.com
Wed Aug 26 00:54:00 GMT 2015


When a user object overrides a versioned definition in a shared object,
it's possible to trigger an internal error because the versioned
definition we saw didn't override the unversioned definition. This
was introduced by the fix for PR 18703. This patch fixes the problem
by reordering the tests so that we do not check ret->is_default()
until we're confident that the symbol is in fact versioned.

-cary


2015-08-25  Cary Coutant  <ccoutant@gmail.com>

gold/
        PR gold/18866
        PR gold/18703
        * symtab.cc (Symbol_table): Reorder conditions to avoid internal error.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr18866.patch
Type: application/octet-stream
Size: 2787 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20150826/e292d5d3/attachment.obj>


More information about the Binutils mailing list