Skip to content

Output dynamic executable when the executable depends on shared objects#879

Merged
davidlattimore merged 4 commits into
wild-linker:mainfrom
mati865:push-ruqqozopvrxo
Jun 17, 2025
Merged

Output dynamic executable when the executable depends on shared objects#879
davidlattimore merged 4 commits into
wild-linker:mainfrom
mati865:push-ruqqozopvrxo

Conversation

@mati865

@mati865 mati865 commented Jun 13, 2025

Copy link
Copy Markdown
Member

Fixes #836

Comment thread wild/tests/integration_tests.rs Outdated
command
.arg("-dynamic-linker")
.arg(dynamic_linker_path(cross_arch));
// TODO: `export-dynamic` test reproduces the problem only when using neither `-static` nor `-dynamic-linker`

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I guess one option here would be to replace is_static with an enum. e.g. //#Mode:static, //#Mode:dynamic, //#Mode:unspecified. The current default would be static, but I'm also open to changing that default to unspecified if we wanted - although we'd need to update a bunch of tests to explicitly specify //#Mode:static.

@mati865 mati865 force-pushed the push-ruqqozopvrxo branch 4 times, most recently from e47b988 to b7029e8 Compare June 16, 2025 16:34
@mati865 mati865 force-pushed the push-ruqqozopvrxo branch 3 times, most recently from 04648e3 to 9e7dc2e Compare June 16, 2025 21:42
@mati865 mati865 marked this pull request as ready for review June 16, 2025 21:49
@mati865 mati865 force-pushed the push-ruqqozopvrxo branch from 9e7dc2e to d722874 Compare June 16, 2025 21:50
@davidlattimore davidlattimore merged commit 6170a77 into wild-linker:main Jun 17, 2025
22 checks passed
@mati865 mati865 deleted the push-ruqqozopvrxo branch June 17, 2025 06:36
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.

--export-dynamic: thread 'main' panicked at libwild/src/layout.rs:289:14:

2 participants