<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/117903>117903</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Bolt crash
</td>
</tr>
<tr>
<th>Labels</th>
<td>
BOLT
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
when-hao
</td>
</tr>
</table>
<pre>
English:
I used the Android NDK to cross-compile an llvm-bolt for arm64-v8a architecture from GitHub Actions. When I tried to instrument a simple program that was compiled with clang and already had the -Wl,--emit-relocs option added, using it in Termux, I encountered the following issue. How can I resolve this?
中文:
我从github action中使用android ndk交叉编译了一份基于arm64-v8a的llvm-bolt,当我在termux中尝试为一个使用clang编译并已经添加-Wl,--emit-relocs的简单程序进行instrument时遇到下面的情况,我该怎么解决这个?
> ❯ ../bolt/bin/llvm-bolt ms2 -instrument -o ims2 -v 1
BOLT-INFO: shared object or position-independent executable detected
BOLT-INFO: Target architecture: aarch64
BOLT-INFO: BOLT version: 561797000ac11cdf1538673c5c487c139b327aed
BOLT-INFO: first alloc address is 0x0
BOLT-INFO: creating new program header table at address 0x200000, offset 0x200000
BOLT-INFO: marking .init_array as GNU_RELRO
BOLT-INFO: marking .fini_array as GNU_RELRO
BOLT-INFO: marking .dynamic as GNU_RELRO
BOLT-INFO: marking .got as GNU_RELRO
BOLT-INFO: marking .got.plt as GNU_RELRO
BOLT-INFO: marking .relro_padding as GNU_RELRO
BOLT-INFO: enabling relocation mode
BOLT-INFO: forcing -jump-tables=move for instrumentation
BOLT-INFO: setting size of function __BOLT_PSEUDO_.plt to 32 (was 0)
BOLT-INFO: setting size of function __libc_init@PLT to 16 (was 0)
BOLT-INFO: setting size of function __cxa_atexit@PLT to 16 (was 0)
BOLT-INFO: setting size of function __register_atfork@PLT to 16 (was 0)
BOLT-INFO: setting size of function printf@PLT to 16 (was 0)
BOLT-INFO: setting size of function exit@PLT to 16 (was 0)
LLVM ERROR: annotation value out of range
LLVM ERROR: annotation value out of range
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
fish: Job 1, '../bolt/bin/llvm-bolt ms2 -inst…' terminated by signal SIGABRT (Abort)
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJysV8ly2zwSfprWpUsqEtzAgw6gReb3jCdOOc7kqAJJUERMEioAlO15-ilA8hIn42X-4CQCja-_XtDd4sbI3STEGpICks2Cz7ZXen3bi2nZc7WoVXu_LqfdIE0PEYOAneNsRIu2F8imVivZ4ufNP9EqbLQyZtmocS8HgXzCYTiMy1oNFjulkesxjZcHypHrppdWNHbWAjutRvwk7V9zjayxUk1mhd97MeE5Wi2dKoVyMlbPo5gscjRy3A8C91rtNB_R9tziLTd40tzirbQ9NgOfdsinFvmgBW_vsedH2svvA5Cz5VKM0i61GFRjUO2dZuRtK1ogZzgbOe1QWpQTXgs9zndu9xzF1Kh5skKfXNCpYVC3XtaYWazwL3WLDXfktTBqOAi0vTQQVRA470EZQ0GBbaBMIU-BZlBWUJxBfjxNgVLIQy9WAC130vZzjdw75tnlGIoNFBWUGeQxMMpPoZjaG3_IgMVQJkAroLmTcipSKCmw6gGfAU1PkDQ4aSw27lZeudOTTPkYOK-NAY0fA3siT8_crWIDefTMhATyM2DUHt33xD2BIoB880AmOR0V7GcyFBj71VAf1t8ZlECRQ5H6HxkUxMsUzgFl6ncK7w8GLPhNAjya5n6w0nNIgG48vQwYBervO4dUTmtRQV549SHQs6f89HHNPJEcaOgDnDiPFA9WOaDc2c_IM60p0Aho4oVTKJJnnn10qLeVJX4nAFp6wNyduqMMWPRwPXqgmD9z5THPHhIxYBCVCCXxVCpcrYBUPqakquUEpHp6vqMhuHz2BpcKpd87YAgBKy4vrpfnn6tLiBianrvHoeoforGoNO6VkS57l3JqxV5MrUMQd6KZLa8Hga1wpUC0L4Guud4J-1OxcNvcbaTxS2n3gQehjXsnEcMkDbM8C4KAN2HYtF2YRDTNoiZpYpo1YZT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