-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Closed
Labels
Description
Description
It seems like a platform inconsistency with printf and %p. On windows this is uppercase without 0x prefix. On linux it's prefixed with 0x and lowercase.
See
runtime/src/coreclr/ildasm/dasm.cpp
Line 6652 in 45d7d63
| sprintf_s(szString,SZSTRING_SIZE,"%s// Image base: 0x%p",g_szAsmCodeIndent,g_pPELoader->base()); |
Reproduction Steps
On linux or wsl, run ildasm <assembly> observe the // Image base: comment that follows .corflags
I notice this when diffing IL that was generated on Windows against that generated on Linux.
Expected behavior
A single 0x prefix
Actual behavior
Two 0x prefixes
Regression?
No response
Known Workarounds
No response
Configuration
No response
Other information
No response
Reactions are currently unavailable