fix(wasm): preserve debug module names in WABT output (#1967)

* fix(wasm): preserve debug module names in WABT output

* fix(native): accept otool dylib-use options

Preserve modern dylib options while requiring one encoding metadata row and retaining duplicate and multiline-output checks. Share field parsing between preservation and validation.

Verify delayed dylibs through real macOS CLI/MCP workflows and refresh the high-address golden with the provider's -h -l capture. Validated 85 focused native tests, npm run check, and verify:macos-bundle on macOS arm64.

---------

Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>
This commit is contained in:
Arthas
2026-10-12 05:44:15 +08:00
committed by GitHub
co-authored by morluto
parent 1d4c4eb030
commit b777e5d4d8
13 changed files with 262 additions and 56 deletions
+1 -1
View File
@@ -23,5 +23,5 @@ section = struct.pack(
)
Path('/tmp/rea-high-address.macho').write_bytes(header + segment + section + b'\xc0')
PY
xcrun otool -l /tmp/rea-high-address.macho
xcrun otool -h -l /tmp/rea-high-address.macho
```
+3
View File
@@ -1,4 +1,7 @@
fixture:
Mach header
magic cputype cpusubtype caps filetype ncmds sizeofcmds flags
0xfeedfacf 16777228 0 0x00 5 1 152 0x00000000
Load command 0
cmd LC_SEGMENT_64
cmdsize 152