title: segmentation fault when compiling as FDPIC ELF
body: <p>I have a simple c helloworld program.</p>
  <pre class="lang-c prettyprint-override"><code>#include &lt;stdio.h&gt;
  
  int main() {
     printf(&quot;Hello World!\n&quot;);
     return 0;
  }
  </code></pre>
  <p>when I compile it normally (<code> arm-linux-gnueabi-gcc helloworld.c -o out.o</code>) it executes without any problems but when I try to compile it as an FDPIC elf (<code> arm-linux-gnueabi-gcc -shared -fPIC -fPIE helloworld.c -o out.o</code>), it crashes.</p>
  <pre><code>$ qemu-arm -cpu cortex-a7 out.o
  qemu: uncaught target signal 11 (Segmentation fault) - core dumped
  Segmentation fault
  </code></pre>