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

    <tr>
        <th>Summary</th>
        <td>
            clang option -export-dynamic parse to -e xport-dynamic error
        </td>
    </tr>

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

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

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

<pre>
    https://godbolt.org/z/jsTch9cqq

Compile command `clang -export-dynamic test.c` simply, but have a warning :

```
clang: warning: argument unused during compilation: '-e xport-dynamic' [-Wunused-command-line-argument]
```

It seem clang split option `-export-dynamic` into `-e     xport-dynamic`. 
It's dangerous if  `-e   xport-dynamic`  is sent to `ld`, because of `-e`  means 

```
-e ADDRESS, --entry ADDRESS Set start address
```

I don't think it's reasonable to split option `-export-dynamic` into `-e xport-dynamic`.

I can't find the code that split the option, if someone knows , just tell me.


</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUVF9vozgQ_zTmZUREDIHkgYe0uUj3ej3png0ewK2xqWdoL_vpV4Zkd5uuKm0UGbA9v394UESmd4i12D2I3SlRMw8-1APxS54ljdeXemCeSORHIc9CnnuvG29540Mv5PmbkOdn-rcdDu3rq8hOIjuu46MfJ2MRWj-OymkQZdZa5XpI8f_JB071xanRtMBIvGlFmQGZcbIXIR-hmRkG9Yag4F0FZ1wPkf8XeFFm1__yuECL_HjbHm9V6OcRHcPsZkINeg4RqF2EKTbexV1CVinCB0lCViB2D-l_a2F6tZBa4zC9oYrd6bdK1vFvBkIcYbVMkzUMfoqcMYi7CKJ349ivSxB_9-sbuOEKWRFo5XoMfiYwHfwo-wQKhoBiAiu21VFljBdbNROC79baZe-IyhF8kXGKcDyd_vnr6SlipCk6DpfbFDwhA7EKDErrgERfpQPaOyErBh6MewGzugqoyDvVWIyC_yy0T4F95GvVytcZp4GHeCw1Ag-KrzxxbuWK5kwH5Ef0DuHF-XeCOPk8EwOjtTDiB_hE17k-5AeVYL0tD9m-Kspsnwx1pzqdNe32kEtdqV253yNusSwQC1R50SWmlpnMs322zSqZy2qDh73CTu-KJt_KqqtEkeGojN1Y-zbGlksM0Yx1WchDlVjVoKWlc6V0-A7LopAyNnKoY03azD2JIrOGmH6isGGL9Xo6rxHf9-WkAi0v4j5dwBB8SOZg778Mhoe52bR-FPIcqa6XdAr-GVsW8rwIJCHPi4HvAQAA__8dqWdc">