title: C: no .eh_frame_hdr table will be created
body: <p>I was trying to compile some code using makefile </p>
  
  <pre><code>puzzle.o:
      gcc -o puzzle.o Sourcepuzzle -Wall -Werror -g
  </code></pre>
  
  <p>but a warning and an error saying that </p>
  
  <pre><code>/usr/bin/ld: warning: Cannot create .eh_frame_hdr section, --eh-frame-hdr 
  ignored.
  /usr/bin/ld: error in puzzle.o(.eh_frame); no .eh_frame_hdr table will be 
  created.
  </code></pre>
  
  <p>were returned and it failed to compile.</p>
  
  <p>I tried to google about this and got the info to put <code>-fPIC -shared</code> besides the <code>-g</code> but it didn't solve the problem</p>
  
  <p>I'm wondering why is this the problem and how should I solve this.</p>
  
  <p>Thank you in advance </p>