[llvm] [BOLT] Check if symbol is in data area of function (PR #160143)

Paschalis Mpeis via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 20 08:56:09 PST 2026


paschalis-mpeis wrote:

> from my point of view this assembler is not correct because for each instruction linker must put $x.

@yavtuk: Yes, my understanding is that this is some inline assembly.
I'm not sure whether Ash could provide more details?

We observed a few cases of incorrect use of code/data markers. Some fixes landed to address such inconsistencies, so that BOLT does not crash. It's not clear where we should draw the line between a warning and a clean exit, but at the very least BOLT should not crash.

Based on previous fixes (including #165406) I considered this acceptable with a warning but we can discuss whether we want to be more strict. WDYT?

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


More information about the llvm-commits mailing list