title: Referenced symbol not found
body: <p>I am trying to run a program preloading my library using <code>LD_PRELOAD</code>. At runtime the program is throwing following error.</p>
  
  <blockquote>
    <p>ld.so.1: gdbser64: fatal: relocation error: file  libmy.so: symbol
    _ZN10__cxxabiv118register_exit_codeEPFYvvE: referenced symbol not found</p>
  </blockquote>
  
  <p><code>libmy.so</code> is not using <code>register_exit_code</code> symbol anywhere. It might be case that a standard library linked by libmy.so is using the function. But I am not able to find who is using this symbol or who has defined it.</p>
  
  <p>It is on <code>Solaris</code>, compiled using <code>CC(solaris cpp compiler)</code>.</p>