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

    <tr>
        <th>Summary</th>
        <td>
            the compatibility of gcc and clang16
        </td>
    </tr>

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

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

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

<pre>
    Hello, when I use clang16 to generate a c++ binary file, and then use gcc link to generate an executable file, a segmentation fault occurs.
![image](https://github.com/llvm/llvm-project/assets/35714148/682bb709-28a5-4d4d-8b56-6c3b72880cd6)
![image](https://github.com/llvm/llvm-project/assets/35714148/571525c9-8cc3-4419-9b40-8ea37b524da3)
The clang and gcc version used is as follows:
![image](https://github.com/llvm/llvm-project/assets/35714148/47f624d3-0473-44f6-8216-7ca0406f56fa)
The hello.cpp is as follows:
`#include <iostream>
int main(int argc, char **argv) {
    std::cout << "Hello World\n";
    return 0;
}`
When I use clang15, it is success, so what causes this problem to occur. Is there something wrong with my test code?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy0lMGypCYUhp8GN6fskgMoLlx0305XZp-qWSOeViYoXYC3b799Cmcyk0lVFlnMRinwx4_DByYlN29EA1MXpq6V2fMS4vD68vHhtmoM02v4nbwPDN_gudAGn2BPBNabbeYt5AAzbRRNJjBgGV4YXmB0m4kvuDtPJWe2CXLJluRsLXi3_flzdAP6ILtnM3r6kYNE80pbNtmFDe5m9xmCtXtMJ9ZcWXNmyJm6uNXMxNSVoV5yfiQmzgxvDG-zy8s-nmxYGd68f__7VT9i-EI2M7yZlCgnhjehOi651AxvrcZx7Jq-Rm1ULSc51XpUbd1aMXaodWOnlmH_KxFUxxUq29faWlFLyfu6H2VTazKiGxXKyYjvCH8s3zbkqHQp8DvFVEq2J5rAJTAJ7sH78DzAfiG37O4tyknUjewK972tNfK27qxpZNPeVXs3P3EvRa6TfTz-C7NtGAq3Wb9PBEy8uZByJLMy8dvXL9yWYTVuY6hL08TZFnnsYiIwPDM8mzi_M-yBdZevEQCAlKfyE3G2Yc9lYibegCEetsPnEP3E1NvGEJn4RyxS3uMGzfdO1l0L49H-_O8DogqJy2VtabeWUiodKcBzMRms2RMlyItL8Ihh9LSWU3EYfoJPZYQiQQor5cVtMzxjKE-XF1hfkCllsGEiJm7VNIipF72paOBdowTXqGS1DB1yi7JD23ay1Vr3jVSi7yZhW2G0HCs3YIOy4VxxLhrFTxMnTXfZc8Vbq4xhsqHVOH8q238Kca5cSjsNneZSV96M5NNxeyBu9IRjsFRNXas4HMqM-5yYbLxLOf2YJbvsacjF3bA-THaj8y6_INwPhYvK326Zao9--N96HiBFzwP0rwAAAP__7ZaBCQ">