<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/62691>62691</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
32 bit arm Mach-O targets are broken
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
OldWorldOrdr
</td>
</tr>
</table>
<pre>
`<apple linker> -arch armv7 -platform_version ios 10.0 10.0 -syslibroot /path/to/sdk -o a.out -lSystem test.o`
this works with no issues.
doing the same but with `ld64.lld` as linker produces this error
```
ld64.lld: error: VANILLA relocation must be extern at offset -1191182322 of __TEXT,__text in hello.o
ld64.lld: error: VANILLA relocation has width 1 bytes, but must be 0 bytes at offset -1191182322 of __TEXT,__text in hello.o
ld64.lld: error: VANILLA relocation must be extern at offset -1325400056 of __TEXT,__text in hello.o
ld64.lld: error: VANILLA relocation has width 1 bytes, but must be 0 bytes at offset -1325400056 of __TEXT,__text in hello.o
ld64.lld: error: VANILLA relocation must be extern at offset -1459617782 of __TEXT,__text in hello.o
ld64.lld: error: VANILLA relocation has width 1 bytes, but must be 0 bytes at offset -1459617782 of __TEXT,__text in hello.o
ld64.lld: error: VANILLA relocation must be extern at offset -1593835520 of __TEXT,__text in hello.o
ld64.lld: error: VANILLA relocation has width 1 bytes, but must be 0 bytes at offset -1593835520 of __TEXT,__text in hello.o
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzElEFvpDgQhX-NuZRAxga6OXDoTYK0UnZzmGhmbi0bF42nDUZ2kaT__Ygmk7lFyiGKhEBA1av32fJTMdrThNiw8h9W3iZqocGH5sGZHz448xBMSLQ3l4ZVnMkbNc8OwdnpjIHJO0hV6AZQYXzaQTo7Rb0P4_EJQ7R-Ausj5Dzj2y2Nl-isDt4TMNHOigYmWvJMtNGcIfWgMr8QpO7bJRKOQBgp8-tgfsv4gQYb4dmHc4RnSwNMHmyMC8Zs-2-8nU5AA0JUI4JeaKtjFXemKjLnDKs4qPjqH-bgzdJhhKsyhuDDprSO3K7r61u3PLxWyQN8P_z_7_39AQI63ylaccclEmgEfCEMEygC3_cRCdI8r_N8L6QQ4Hs4Hh_vfj4ycXM8Er4Q2AkGdM5n_mPzBrWuhKEBctAXwsjEzRX7jxG-ff58J--QS1EWnPOy-nLyT3HyDnlR1lW-2-2_fs8_xck75GUt97IsBf9y8g85eTv2iWmkqWWtEmzyai_rQpR5lQwN7mXBeY6F3Pe1Vii7opQ9ou5kpzUWiW0EF5KXueR5sZdVhrqXXbWTyuyMkhWyguOorMucexozH07JNcOaSlR1njil0cVrFgsx4fMWcEyINZpDs_akejlFVnBnI8W_KmTJYSMFaEtrHsN_qhvSByAVTkgRVEDQwZ9xSpbgmoFojkwemGiZaE-WhkVnnR-ZaFfJ10c6B_8LO2Ki3ZKWifZq9HcAAAD__9FN-18">