[llvm] [BOLT] Distinguish jump relocation from .rela.plt and .rela.dyn (PR #178815)

Máté Kocsis via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 27 06:06:37 PDT 2026


kocsismate wrote:

I'm maintaining PHP's benchmark framework (https://github.com/kocsismate/php-version-benchmarks/) and I bumped into the issue this PR solves. The benchmark runs on AWS EC2 (bare metal) instances, and I faced the "Dynamic relocation error" issue when trying out BOLT (https://github.com/kocsismate/php-version-benchmarks/commit/351e967b112f9fb6df8f48afc3e9e4fc907d9aec#diff-45e5664956651241fe156139d7d9c08873eb6357ad82375cc5ffc5cfe858f65dR476).

After a lot of trial-error attempts, my colleague found this fix. When applying it on top of my colleague's bolt-align tool (https://github.com/kocsismate/llvm-project/commits/bolt-align-fix/), my problems vanished immediately.

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


More information about the llvm-commits mailing list