This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Quick question about _bfd_generic_link_add_one_symbol state machine and weak symbols
- From: Dave Korn <dave dot korn dot cygwin at googlemail dot com>
- To: binutils at sourceware dot org
- Date: Sun, 29 Mar 2009 08:23:38 +0100
- Subject: Quick question about _bfd_generic_link_add_one_symbol state machine and weak symbols
Morning all,
static const enum link_action link_action[8][8] =
{
/* current\prev new undef undefw def defw com indr warn */
/* UNDEF_ROW */ {UND, NOACT, UND, REF, REF, NOACT, REFC, WARNC },
^^^
If my current understanding is right, the significance of the underlined
entry is that if have an undefined weak reference, and we later see an
ordinary undefined reference to the same symbol, the original reference
becomes non-weak.
Can anyone explain why, though? I don't get what the intent is behind this.
cheers,
DaveK