title: powerpc 32bit gcc compilation causing assembler errors due to GOT overflow
body: <p>Context:</p>
  
  <p>I have a Large C file generated by SWIG for python bindings 13MB in size.
  When its compiled with powerpc 32bit gcc with -fPIC I get the following error.</p>
  
  <blockquote>
    <p>{standard input}:1805519: Error: operand out of range
    (0x000000000000aab8 is not between 0xffffffffffff8000 and
    0x0000000000007fff)</p>
  </blockquote>
  
  <p>As per Internet search in multiple sites this seems to be due to ELF GOT overflow and assembler is unable to fit in 16K entries of 64K GOT.</p>
  
  <p>Question:
  As per Powerpc 32bit gcc manual -fPIC means a GOT per function than ELF.
  So I want to know the offending function which needs greater than 16K GOT entries due to which compilation fails. Please let me know how to find it out, any gcc options etc.</p>