Commit f340fb5
Recognize .abi3.so native extensions in linker scanner (#208)
* Recognize .abi3.so native extensions in linker scanner
The directory scanner in prelink.rs only matched native WASM extensions
ending in .cpython-314-wasm32-wasi.so, ignoring stable-ABI extensions
(.abi3.so) even though CPython's EXTENSION_SUFFIXES includes them.
This adds .abi3.so to the set of recognized suffixes and validates
candidates with a WASM magic byte check to avoid accidentally treating
native (ELF) .abi3.so files as WASM modules.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Run cargo fmt
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 89af297 commit f340fb5
1 file changed
+13
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
20 | 27 | | |
21 | 28 | | |
22 | 29 | | |
| |||
235 | 242 | | |
236 | 243 | | |
237 | 244 | | |
238 | | - | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
239 | 250 | | |
240 | 251 | | |
241 | 252 | | |
| |||
0 commit comments