<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/123006>123006</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[bolt] Report error on .so instrumentation: unsupported CFI opcode
</td>
</tr>
<tr>
<th>Labels</th>
<td>
BOLT
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
whousemyname
</td>
</tr>
</table>
<pre>
I want to use llvm-bolt to instrument a .so file on the android platform, but it reported the following error:
`
BOLT-INFO: shared object or position-independent executable detected
BOLT-INFO: Target architecture: aarch64
BOLT-INFO: BOLT version: 446a426436c0b7e457992981d3a1f2b4fda19992
BOLT-INFO: first alloc address is 0x0
BOLT-INFO: creating new program header table at address 0x1c00000, offset 0x1c00000
BOLT-WARNING: debug info will be stripped from the binary. Use -update-debug-sections to keep it.
BOLT-INFO: enabling relocation mode
BOLT-INFO: forcing -jump-tables=move for instrumentation
unsupported CFI opcode
UNREACHABLE executed at D:\github-projects\llvm-project\bolt\lib\Core\BinaryFunction.cpp:2591!
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Exception Code: 0x80000003
unsupported CFI opcode
UNREACHABLE executed at D:\github-projects\llvm-project\bolt\lib\Core\BinaryFunction.cpp:2591!
`
command to execute:` \llvm-bolt.exe .\libzzz-debug.so -instrument -o .\libzzz-debug.so.instrumented`
What is the reason for this phenomenon? Does it mean that bolt cannot instrument .so files, or the generation process of my .so files does not meet the requirements of instrumentation?
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJzMVcFu4zgM_RrlQiSwpdiNDz64brxboOgsujOYsyzRsWZsySvJbdqvX9BOp0U7pz1tLoEI-pF8eo-SIZiTRSxZds2ym42cY-98-dS7OeD4bOWIm9bp5_IWnqSNEB3MAWEYHsdt64YlYGyIfh7RRpCwCw46MyA4C7FHkFZ7ZzRMg4yd8yPjNbRzBBPB4-R8RL3kdW4Y3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