Speed up C++ ABI audit with ELF cxx11 precheck - #1439
Merged
Conversation
maleadt
force-pushed
the
tb/speedup_cxx_abi_audit
branch
2 times, most recently
from
July 7, 2026 20:35
c4b2dce to
7f56523
Compare
maleadt
force-pushed
the
tb/speedup_cxx_abi_audit
branch
from
July 9, 2026 15:48
7f56523 to
3ac32f3
Compare
Use ELF dynamic symbols as a fast positive check for libstdc++ cxx11 ABI markers, then fall back to the full existing symbol-table audit when that check is inconclusive. Recognize both the std::__cxx11 inline namespace and GCC ABI-tag manglings such as B5cxx11, so ABI-tagged cxx11 exports still win over old-ABI _ZNSs references. This removes the pathological LLVM audit cost for obvious cxx11 libraries without weakening cxx03 detection or no-evidence cases. Tests cover raw cxx11 namespace markers, GCC ABI tags mixed with old-ABI symbols, cxx03-only markers, and no-evidence cases.
maleadt
force-pushed
the
tb/speedup_cxx_abi_audit
branch
from
July 9, 2026 21:10
3ac32f3 to
63ec1c7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Use ELF dynamic symbols as a fast positive check for libstdc++ cxx11 ABI markers, then fall back to the full existing symbol-table audit when that check is inconclusive. This removes the pathological LLVM audit cost for obvious cxx11 libraries without weakening cxx03 detection or no-evidence cases.