Link problems with section anchors

David Edelsohn dje@watson.ibm.com
Fri Aug 4 13:54:00 GMT 2006


	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



More information about the Binutils mailing list