<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/59712>59712</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
llvm-ml doesn't seem to support extern function declarations
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
glandium
</td>
</tr>
</table>
<pre>
Firefox has some assembly that calls back into C-defined code, and to do so uses an extern function declaration int he assembly: https://searchfox.org/mozilla-central/rev/963abc662a419920b6cf83bb142de1c6f0056613/xpcom/reflect/xptcall/md/win32/xptcinvoke_asm_x86_64.asm#5
llvm-ml doesn't seem to support it:
```
xptcinvoke_asm_x86_64.asm:5:7: error: expected section directive before assembly directive
extrn invoke_copy_to_stack:PROC
^
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyEUtuOpDgM_ZrwElUJHK4PPNR2L6-72h8o5WKKbIcExaGanq8fQZWmZ6S5IAQmxj72OUcS2ZtH7Fn1F6teM7mmKcT-5qQ3dp0zFcxHP9iIY9j4JIlTmJFLIpyV--Bpkolr6RxxJfUbtz4F_nIyOFqPhutgkMELl97wFLgJnAJfCYlLz3FLGD0fV6-TDZ4b1E5GecTWJz594jBx4VNKCzFxYTAwGAhl1NMYtnOINwbDHL5Y5-RJo09ROgZDxDuDoauFVLquQZZF10Guaj22QqmiBIOFrsc8r-q6EAyGbdFhPgpHhzodJ2nfbW9vGAzv1gt4Hlt_D294lTRft7a-1uVZ0sxAVCx_Zfnl8XTuPp9mx01A8gyaxAlx3pmgdVlCTNymfaNHSZ0_7-Pz1yDiUjFxaXZOMMYQj2BbUCc0nPBJpo17dEeucAzxO8m-ZR44uKW4830g6bB8XFO4UpL6jYnLv__98_L4jR8Xq_7-6bCZ6YXpRCcz7Iu6gSIvy7rJpl6oPG9V0Y6VRGh1g1ULne5MMzYgulJntoccoABo8gKasjk3qu2KompFoSowGlmZ4yytO-9k7mJnlmjFvuqaAjInFTo6zAvg8Z0fSQawezn2hwBqvRErc2cp0WeXZJPD_s8K_callK3R9T_68mbTtKrzw0l79-frtMTw_8NVx4jEYDhW-BoAAP__AJMihA">