This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Query - GNU 2.17 ld
- From: Vijaya N Malkapuram <vnarayana at in dot ibm dot com>
- To: bug-binutils at gnu dot org, binutils at sources dot redhat dot com
- Date: Wed, 20 Jun 2007 20:24:54 +0530
- Subject: Query - GNU 2.17 ld
Hello,
I am facing a problem w.r.t symbols originating from .gnu.linkonce.r
sections. I am using g++4.0.3 and 2.17 linker.
Errors of the type :
`.gnu.linkonce.r._ZTS7TI_ListI16TI_VoidPtrListElE' referenced in section
`.data' of /Mgc_home/shared/lib/librxl.a(ti_cktrep.o): defined in discarded
section `.gnu.linkonce.r._ZTS7TI_ListI16TI_VoidPtrListElE' of
/Mgc_home/shared/lib/librxl.a(ti_cktrep.o)
I thought that all the .gnu.linkonce sections are blocks with SHF_GROUPS.
However, .gnu.linkonce.r (and .gnu.linkonce.d ?) sections are not.
And, in the .data section, if there are any data relocations that are
generated for the symbols originating from these sections, 2.17 linker
doesnt accept this and doesnt create the output.
I wanted to know if this is the desired behaviour or is this a bug ? I
notice in the bfd/elflink.c, you are checking for such sections in
elf_discarded_section. I am not sure if .gnu.linkonce.r and .gnu.linkonce.d
sections are also discarded.
Thanks & Regards
Vijay