Skip to content

fix: check for static link of dynamic object#1886

Merged
davidlattimore merged 1 commit into
wild-linker:mainfrom
TechnoPorg:push-uxoyppvwkssw
May 4, 2026
Merged

fix: check for static link of dynamic object#1886
davidlattimore merged 1 commit into
wild-linker:mainfrom
TechnoPorg:push-uxoyppvwkssw

Conversation

@TechnoPorg
Copy link
Copy Markdown
Contributor

The allow_shared modifier currently only applies if given a library name as an input, but is ignored if given a filename. This PR adds a check to see whether a shared object given as a filename is allowed to be linked.

Split off from #1884.

Copy link
Copy Markdown
Member

@davidlattimore davidlattimore left a comment

Choose a reason for hiding this comment

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

Thanks for this. Always good to see improvements to our error reporting.

Comment thread wild/tests/sources/elf/no-dynamic-in-static/no-dynamic-in-static.c Outdated
Comment thread libwild/src/input_data.rs Outdated
@TechnoPorg TechnoPorg force-pushed the push-uxoyppvwkssw branch 2 times, most recently from 05a179e to d3031ab Compare May 4, 2026 06:14
@davidlattimore davidlattimore merged commit 96c53da into wild-linker:main May 4, 2026
24 checks passed
@TechnoPorg TechnoPorg deleted the push-uxoyppvwkssw branch May 4, 2026 13:40
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.

2 participants