This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: Fix to common symbol detection
- To: nickc at cygnus dot com
- Subject: Re: Fix to common symbol detection
- From: Ian Lance Taylor <ian at zembu dot com>
- Date: 14 Dec 1999 18:19:03 -0500
- CC: binutils at sourceware dot cygnus dot com
- References: <199912142308.PAA04570@elmo.cygnus.com>
Date: Tue, 14 Dec 1999 15:08:57 -0800
From: Nick Clifton <nickc@cygnus.com>
Here is a further patch to the new code to cope with linking in
defintions of commons in archives. This patch fixes the code to
determine if a symbol is a common definition and adds a place for
a backend specific funciton to process special sections.
Looks basically OK.
+ /* Local symbols do not count. */
+ if (ELF_ST_BIND (sym->st_info) != STB_GLOBAL)
+ return false;
There are processor specific STB_* values too. In principle they too
should go to the hypothetical backend function.
Ian