<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/163339>163339</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            llvm_bolt --instrument can not exe __bolt_instr_start
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          zhouyu0502
      </td>
    </tr>
</table>

<pre>
    for libc.so.6   I want to instrument it to collect prof,fdata,Howerver it failed 
`BOLT-INFO: shared object or position-independent executable detected\n
BOLT-INFO: Target architecture: aarch64
BOLT-INFO: BOLT version: 6abb6264ea5577071dc5ac9e289dd1660553ad39
BOLT-INFO: first alloc address is 0x0
BOLT-INFO: creating new program header table at address 0x200000, offset 0x200000
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
BOLT-INFO: number of removed linker-inserted veneers: 0
BOLT-INFO: 0 out of 3238 functions in the binary (0.0%) have non-empty execution profile
BOLT-INSTRUMENTER: Number of indirect call site descriptors: 601
BOLT-INSTRUMENTER: Number of indirect call target descriptors: 3212
BOLT-INSTRUMENTER: Number of function descriptors: 3202
BOLT-INSTRUMENTER: Number of branch counters: 25770
BOLT-INSTRUMENTER: Number of ST leaf node counters: 16269
BOLT-INSTRUMENTER: Number of direct call counters: 378
BOLT-INSTRUMENTER: Total number of counters: 42417
BOLT-INSTRUMENTER: Total size of counters: 339336 bytes (static alloc memory)
BOLT-INSTRUMENTER: Total size of string table emitted: 60391 bytes in file
BOLT-INSTRUMENTER: Total size of descriptors: 2752512 bytes in file
BOLT-INSTRUMENTER: Profile will be saved to file /tmp/prof.fdata
BOLT-INFO: removed 310 empty blocks
BOLT-INFO: UCE removed 43 blocks and 4040 bytes of code
BOLT-INFO: Starting stub-insertion pass
BOLT-INFO: Inserted 0 stubs in the hot area and 0 stubs in the cold area. Shared 0 times, iterated 1 times.
BOLT-INFO: padding code to 0x800000 to accommodate hot text
BOLT-INFO: output linked against instrumentation runtime library, lib entry point is **0x8d99b8**
BOLT-INFO: clear procedure is 0x8d81c0
BOLT-INFO: patched build-id (flipped last bit)
BOLT-INFO: setting __bolt_runtime_start to **0x8d99b8**
BOLT-INFO: setting __bolt_runtime_fini to 0x8d9ae8
BOLT-INFO: setting __hot_start to 0x400000
BOLT-INFO: setting __hot_end to 0x6c9244
`

i found that it does not exe function   __bolt_instr_start so cannot generata prof.fdata


readelf -h libc.so.6
Entry point address: **0x8d99b8**

**8d99b8:**     b0000000        adrp    x0, 8da000 <__bolt_runtime_fini+0x518>
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyUVl9v2zAO_zTOC5FAlh3HfshD1jV3Be66w9rhHgtZomNtsmRIcpvu0x9ou22arNsuMFpb4o8iqR__iBD0wSJuk_WnZP15IYbYOr_92brheWBrxhe1U8_bxnkwupar4FYFANzAk7ARogNtQ_RDhzaCHhekMwZlhN67JuFXjRJRJPzqn-4J_SN6kmqENqggYbukYJ--_Ot-eXO7_5JkOwit8KjA1d9JhfPQu6CjdnaprcIeraKD8IhyiKI2CAojyogqWV_ZhO3eKbsX_oARhJetJqnBIy0LWijyc2n6gEf0QTtL34Wo64IXOYr1erNhm1TJtZAV8rJSKi0Ktl5nQmXVuZ5G-xBBGOMkCKU8hgA6ADuyc0npUURtD2DxicJ18KKDFoVCD5N3Ir6qYEfO6JfwK3BNEzC-Lc16_7v7entz-w9SrbAeDqBt4-BJGwM1Qohe9z0qaLzrILYItbbCP6_gW0BYDr0SEZcjcBlQUtAD3ecPxB50XJ1bj1bUhqz3aJwUJA-dU3gRD-cliS2_D12_HP0KSfa5c49IeycEGnWcw-3Q1ejBNeCRMAqMtj_QL7UN6CMqeESL6AMJX4SYgRsigTOeldAMdvZL25MIQMJLtmIJXye8glY8Ilhnl9j18XnmGjlHhNb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