[llvm] [BOLT] Retain certain local symbols (PR #184074)

Adam Bzowski via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 7 03:56:24 PDT 2026


adam-bzowski-arm wrote:

> Hi @adam-bzowski-arm, thanks for all the details. Will take a look next week (after back from vacation).

I prepared a proposed fix in [PR #229407](https://github.com/llvm/llvm-project/pull/229407). It takes the least invasive approach: temporary `.L*` symbols are retained and assigned their exact emitted addresses, but are not treated as secondary function entry points.

While developing the patch, I discovered a separate bug in BOLT’s address-map parser and opened [PR #229567](https://github.com/llvm/llvm-project/pull/229567) to address it independently. That fix is temporarily included in #229407 so that the complete BOLT LIT suite passes. This dependency accounts for the otherwise unrelated-looking RISC-V changes.

https://github.com/llvm/llvm-project/pull/184074


More information about the llvm-commits mailing list