This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Link problems with section anchors


David Edelsohn <dje@watson.ibm.com> writes:
> 	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.

Ick.  I really have to question whether that's valid.  GCC does care
whether something is link-once or not -- as this PR proves -- so changing
it behind GCC's back seems like a very bad idea.

Richard


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]