This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Link problems with section anchors
- From: David Edelsohn <dje at watson dot ibm dot com>
- To: Steven Munroe <munroesj at us dot ibm dot com>, binutils at sourceware dot org, mark at codesourcery dot com, richard at codesourcery dot com
- Date: Fri, 04 Aug 2006 09:54:16 -0400
- Subject: Re: Link problems with section anchors
- References: <44D2755E.9020600@us.ibm.com> <20060804013032.GB23605@bubble.grove.modra.org> <87y7u427or.fsf@talisman.home>
I have attached the pre-processed source code for the source file
to GCC Bugzilla PR 28598. The reason that DECL_ONE_ONLY does not catch
the symbol becomes obvious:
const unsigned long __strtol_ul_max_tab[] __attribute__ ((visibility ("hidden"))) __attribute__((section(".gnu.linkonce.r." "__strtol_ul_max_tab")))
const unsigned char __strtol_ul_rem_tab[] __attribute__ ((visibility ("hidden"))) __attribute__((section(".gnu.linkonce.r." "__strtol_ul_rem_tab")))
Glibc places the symbol in the linkonce section manually.
David