This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


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

g++ and link once sections.


Hi all,
    I am defining the macros MAKE_DECL_ONE_ONLY and UNIQUE_SECTION_P (as
defined in iris6gld.h) in my target definitions file, to enable g++ to
place the template code compiled into the
.gnu.linkonce sections for the linker to handle the rest.

But when I i compiled a couple of object files having template code  the
resulting .o files do not have these sections . Am I missing out any
other macros that are related to this ??

Secondly I would like to know, is this a _must_  for  templates ??


Thanks for any info or pointers on this.

koundinya



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