Skip to content

ILDASM on linux prints // Image base: 0x0x (duplicate 0x) #122912

@ericstj

Description

@ericstj

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

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

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions