title: Enabling debug symbols in shared library using GCC
body: <p>I am creating a shared library using <code>gcc</code> and suspect that there may be some memory leaks from the shared library. To debug, I need to enable debug symbols when creating the shared library.</p>
  
  <p>To build, I am using <code>gcc -g ...</code> (<code>-g</code> is for enabling debug information)</p>
  
  <p>But the library (<code>*.so</code> file) size is not changing for both <code>-g</code>, and without <code>-g</code>.
  Besides, I am not getting any useful information from tools like <code>VALGRIND</code>.</p>
  
  <p>Can anyone point me the mistake?</p>