relocation error on Solaris 2.6

Peterson, Joel Joel.Peterson@dowjones.com
Thu Jun 24 09:54:00 GMT 1999


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


More information about the Gcc-bugs mailing list