This is the mail archive of the gcc-bugs@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]

relocation error on Solaris 2.6


I get the following error when trying to link some template-heavy code
generated by egcs-1.1.2 on Sparc-sun-solaris2.6:

ld: warning: relocation error: R_SPARC_32: file testAssociation.o:
  symbol findCandidate__H1:
  external symbolic relocation against non-allocatable section .stab;
  cannot be processed at runtime: relocation ignored
[...]

The link then fails with findCandidate__H1 being undefined.

I noticed a similar problem in the egcs-bugs archive reported for Solaris 7,
but didn't see it for Solaris 2.6.

BTW.  This doesn't happen with all template code, only some of it.

Is this a known problem with a known solution?  Would you like more
information?

Regards,

Joel Peterson


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