Commit c34acc5
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>1 parent 43fddde commit c34acc5
1 file changed
Lines changed: 14 additions & 2 deletions
| 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 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
20 | 30 | | |
21 | 31 | | |
22 | 32 | | |
| |||
235 | 245 | | |
236 | 246 | | |
237 | 247 | | |
238 | | - | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
239 | 251 | | |
240 | 252 | | |
241 | 253 | | |
| |||
0 commit comments