<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/62037>62037</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang] In Windows 32-bit, use of optimization options causes build to fail
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
romanholidaypancakes
</td>
</tr>
</table>
<pre>
- generate assembly
> clang-cl -m32 /clang:-S test.cpp /O2
- generating programs from assembler file with optimization option
> clang-cl user32.lib -m32 test.asm -o test32.exe
```
test.asm:19:2: error: unsupported relocation type
push offset "??_C@_0M@LACCCNMM@hello?5world?$AA@"
^
test.asm:23:2: error: unsupported relocation type
push offset "??_C@_1BI@HHJHKLLN@?$AAh?$AAe?$AAl?$AAl?$AAo?$AA?5?$AAw?$AAo?$AAr?$AAl?$AAd?$AA?$AA@"
```
In 64 bit everything works fine
related #62010
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy0U0FzmzwQ_TXLZQePvAL784EDccIkX5P00EOPGQELqBGIkURc99d3sHGajnMtw0hPQu_prcRT3ut2YM4gvYH0NlJT6KzLnO3V0Fmja3Uc1VCpV_ZRaetjFmPLAzsVGJX33JfmiCBuQeQg77AyamjjymDcS0Kg4jQBMo-_YWAfVtU4ztNf6cx5V9NDi6OzrVO9x8bZ_qLODhttGA86dGjHoHv9SwVth9PADp_sPXl2klZGl2cbp42V7zG2JyxpxT95IW7E8p6HH9oLDWS-3oHMCWSO7Jx1M5gGP42jdYFrdGxsdTYVjuOijMszTr6be9s0ngMCEcgCZPGyh0S8iCdIxGO-3--fn2bYsTEWZJEerDP1vJKSPIdEzLy_dCG9u_JJ8l_5XN88QCLu7_-___L4-Dz7Wax1F8AXYK6Afa9DFukFH66-uiti_YF4dRCfXt3DgJsESx2Q39gdQzf_WAfrXj02euDrWz63jo2aTwhIbkisF8mozmS9kzsVcbbe_LcWuySRFHWZJCKVbqkphdjKlGm9rXZKkqyo5pqaSGckSIpkLQQlQtKqLpNq2ySbeiPKutymkAjulTYrY976lXVtpL2fONuQkNvIqJKNv2TSZfOiuJxaD4kw2gf_hxZ0MKf0npOW3uLDgN_1UNuDR0lxqQPQfs4E2uazAHms1OTZYzlpU2Ow2ChtosmZrAth9CBzoAKoaHXopnJV2R6omPdfunh09gdXAag41eCBilMZvwMAAP__JWtHvQ">