I got many instances of warnings like this one while building a shared library:

ld: warning: relocation warning: R_SPARC_DISP32: file distribution.o:
symbol <unknown>:
displacement relocation applied to the symbol 
__1cMCIBC_PRICINGbL__RTTI__1nMCIBC_PRICINGMDistribution__: at 0x50:
displacement relocation will not be visible in output image

The warnings appear only when using the -zverbose option. Is this a warning 
that can be ignored?

The symbol is RTTI data that pointed to by the class vtable.   The RTTI data 
and the vtable are generated under the covers by the compiler. The "symbol 
<unknown>" part is confusing. 

I searched the Linker and Libraries Guide, but did not find a reference to 
"displacement relocation".
 
 
This message posted from opensolaris.org

Reply via email to