<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/55290>55290</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Is there any way to disable Position-independent Code?
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          GoodNameGoodGit
      </td>
    </tr>
</table>

<pre>
    My clang version: 
Apple clang version 13.1.6 (clang-1316.0.21.2)
Target: arm64-apple-darwin21.4.0

I am trying to build Dynamic Shared Objects with command `clang -shared -o Lib.so Lib.c`. After that, I use `objdump -h Lib.so` to check if there is ".got" section. And I get result showing below.
![image](https://user-images.githubusercontent.com/29964492/166985438-58d49849-5a5d-479c-960d-f5c07b277429.png)
Obviously, there is a ".got" section. But I think there may be no ".got" if I use '-shared' without '-fPIC'. And I also try the command `clang -shared -fno-PIC -o Lib.so Lib.c`. Then, the same result I get.

So is there something(or options) I have missed? 
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx9U9tuozAQ_Rp4GWGBufqBh7RVqki720rtDxjsgFuwI9skyt_vGNJuK1UrRZjYM8fnMnRGXNvfV-gnrgc4S-uU0VG-gyh9iNLd7nSa5PdDyHKSkQoi2qz7SZZnFUkJzQiNKNv6XrkdpA843M5VkfCAkwhuL0pjYUHSrW57HoDP4O1V4S3eQLeoScDDVfNZ9fAycisFPHVvsvcOLsqP0Jt55lpAVKUbt8RtVYmBX6ojblt6PCewO3ppwY_cR_QeDrA4GRpN9yaW-QTJeGvBvXB7P8r-HdQRO6SVoBwqpWQw2E3BIQf0AEHx9gOgRrDSLZMHN5pL4N_JyVzITR3NovJOzXyQUfmAho3enxy6EtE9_pCITdZTRwaUtXRhpzfaS-0JasQaylhVFAyd3WdVxZqyyJukbETBmoIlJS9FUtSsT1iViuRY9mnd0bouKCMnPXzG8dSdlVncdA0OfOriPyq7Wzwq86PS77fSmV9RFmjztR4NullJ65v7-LbGYxAh7B6fD_e4fpjFJ4wFUw6o_0nwqE2CjT9G-TpKfZMAjs_yw_w1CfJ1pF5MULjxd2aWQQ_60RgL5hSEOjQH-0Z-RoHKOaSf7yEWbS5YznjslZ9ke_jA4PoKF_QBB0Qoxzv8Kp6NUwEpUVrIk8SH9nBvhESgeLFT-z3tLeFbrNN0_liSkzVhtPEv0lgkEtuXJWVpPLaS51XF87rCUDvWNP2x6tKadiUVoi5pEU8c5821OGWYiZYXWCHwHectVi1NKU3LtMyarMwYSZumYpL2jajqrCyaqEjlzNVEAg9i7BDbdqXULYPDw0k57_4dcufUoKVcr0N8vmDWtn00RvzBMML6qHy8UmhXCX8BMvJfFA">