Skip to content

feat: Add dynamic symbol extraction#11

Merged
LalatenduMohanty merged 1 commit intopython-wheel-build:mainfrom
tiran:add-symbol-extraction
Apr 20, 2026
Merged

feat: Add dynamic symbol extraction#11
LalatenduMohanty merged 1 commit intopython-wheel-build:mainfrom
tiran:add-symbol-extraction

Conversation

@tiran
Copy link
Copy Markdown
Collaborator

@tiran tiran commented Apr 20, 2026

Extract exported and imported symbols from .dynsym section with version info from .gnu.version. Opt-in via include_symbols setting to avoid performance impact when not needed.

New public types: SymbolBinding and SymbolType enums, SymbolInfo dataclass with slots. ELFInfo gains exported_symbols and imported_symbols fields (None when disabled).

Fixes: #8

Extract exported and imported symbols from .dynsym section with version
info from .gnu.version. Opt-in via include_symbols setting to avoid
performance impact when not needed.

New public types: SymbolBinding and SymbolType enums, SymbolInfo
dataclass with slots. ELFInfo gains exported_symbols and
imported_symbols fields (None when disabled).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Fixes: python-wheel-build#8
Signed-off-by: Christian Heimes <cheimes@redhat.com>
@tiran tiran marked this pull request as ready for review April 20, 2026 11:10
Copy link
Copy Markdown
Contributor

@rd4398 rd4398 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is looking good!

@LalatenduMohanty LalatenduMohanty merged commit 393477f into python-wheel-build:main Apr 20, 2026
10 checks passed
@tiran tiran deleted the add-symbol-extraction branch April 21, 2026 04:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: extract exported/imported symbol names from .dynsym

3 participants