<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/141147>141147</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Undefined reference to '__trampoline_setup' with the flang driver
</td>
</tr>
<tr>
<th>Labels</th>
<td>
flang:driver
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
kiranchandramohan
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
ssijaric-nv
</td>
</tr>
</table>
<pre>
It seems like the default flang invocation on ARM doesn't link against libclang_rt.builtins, which contains the definition of __trampoline_setup. I also don't see '-z execstack' passed to the linker. Running 'flang -v t.f90' on the example program from issue #104798 results in:
FIRModule:(.text+0x30): undefined reference to `__trampoline_setup'
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJx0kk-L2zwQxj-NfBli5LG9ig8-ZN-XwB72stBzkKWxrY0sGf3Jpv30xU5KD21BICTmmWd-MyNjNJMj6ln7yhCvJkinZul0kIufpWOIrP2_kDnNPvQxmk8ZjDq4WzF4_b1_SxCJlgjWXAnSTKBplNkmGK10Exh380om4x14B6ePd9CeomMoEljjriAnaVzcHoPaFJeQyiEbm4yLDP-Dr9moGZR3aYv75WCceeQc4XJJQS6rt8bRJVLKawnwBtJGD9o_nCIRMBSHH0B3UjFJdWUoYJUxkobk97RbORRKAPjIzhk3bZIHxeEGqRw7vom826PpLpfVEqzBT0EuMAa_gIkxEwDDuuKN6I4AgWK2KYJxrD4xvp3z28e719nS9oPHMtE9MXzl95oz7Fh9gux2RNIQaKRATtFWJHvhf8IyFIXua93VnSyor0QjurYSnSjmno_YNLKqheCcxFFRe0Stq5oLJVFIVZgeOba8RUTkXStKwdtatvSijpxo4Jo1nBZpbGntbSl9mIodsa-aqmpEYeVANj5XZ28Vq086mBuF596EflMehjxF1nBrYoq_cyWTLPXf_kGL4q-08GXSvI_gMZuHXZGD7eeU1rh39czwPJk056FUfmF43jyf12EN_pNUYnjeYSLD85Pn1uPPAAAA__9qawP4">