[llvm] [BOLT] Account for stubs with symbols in plt (PR #192716)
Alexey Moksyakov via llvm-commits
llvm-commits at lists.llvm.org
Fri May 1 11:11:47 PDT 2026
================
@@ -1041,8 +1041,11 @@ void RewriteInstance::discoverFileObjects() {
FileSymRefs.emplace(SymbolAddress, Symbol);
- // Skip section symbols that will be registered by disassemblePLT().
- if (SymbolType == SymbolRef::ST_Debug) {
+ // Skip symbols in PLT sections that will be registered by disassemblePLT().
+ // ST_Debug covers section markers (lld/GNU ld), ST_Function covers
+ // explicit stub symbols emitted by mold (e.g., malloc$plt).
+ if (SymbolType == SymbolRef::ST_Debug ||
----------------
yavtuk wrote:
How ST_Debug related to plt symbols? Gor it is obvious that there is plt section and the symbol has the index and address
https://github.com/llvm/llvm-project/pull/192716
More information about the llvm-commits
mailing list