This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH][GOLD] Do not turn a non-weak reference of a weak symbol in DSO to weak.
- From: Ian Lance Taylor <iant at google dot com>
- To: Doug Kwan (éæå) <dougkwan at google dot com>
- Cc: Cary Coutant <ccoutant at google dot com>, binutils <binutils at sourceware dot org>
- Date: Thu, 12 Aug 2010 14:10:29 -0700
- Subject: Re: [PATCH][GOLD] Do not turn a non-weak reference of a weak symbol in DSO to weak.
- References: <AANLkTikd0ZTZ_-ApzuKrfsMGNfT8pP1QULTc4nJ1rU6h@mail.gmail.com>
"Doug Kwan (éæå)" <dougkwan@google.com> writes:
> 2010-08-11 Cary Coutant <ccoutant@google.com>
> Doug Kwan <dougkwan@google.com>
>
> * resolve.cc (Symbol_table::should_override): When a weak dynamic
> defintion overrides non-weak undef, remember that the original undef
> is not weak.
> * symtab.cc (Symbol_table::sized_write_global): For undef without
> an original weak binding, set binding to global in output.
> * testsuite/Makefile.am: Add new test strong_ref_weak_def.
> * testsuite/Makefile.in: Regenerate.
> * testsuite/strong_ref_weak_def.sh: New file.
> * testsuite/strong_ref_weak_def_1.c: Ditto.
> * testsuite/strong_ref_weak_def_2.c: Ditto.
This is OK.
Thanks.
Ian