Commit 0ab473f
authored
fix bug with libdl.so and unused libraries (#1482)
My earlier PR had a bug that led to an error when `--use-built-in-libdl` was
specified and there were unused libraries provided by the user _and_
`--stub-missing-functions` was _not_ used. This adds a test to exercise that
case and moves the `self.use_built_in_libdl = false;` statement so that it is
always run prior to a recursive call to `Linker::encode`.
Signed-off-by: Joel Dice <joel.dice@fermyon.com>1 parent bcabe03 commit 0ab473f
10 files changed
Lines changed: 814 additions & 1 deletion
File tree
- crates/wit-component
- src
- tests/components/link-dl-openable-builtin-libdl-with-unused
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1257 | 1257 | | |
1258 | 1258 | | |
1259 | 1259 | | |
| 1260 | + | |
1260 | 1261 | | |
1261 | 1262 | | |
1262 | 1263 | | |
| |||
1343 | 1344 | | |
1344 | 1345 | | |
1345 | 1346 | | |
1346 | | - | |
1347 | 1347 | | |
1348 | 1348 | | |
1349 | 1349 | | |
| |||
0 commit comments