Skip to content

Legacy Windows versions require higher alignment values #4

@realJoshByrnes

Description

@realJoshByrnes

Summary:
When running a Rusticle binary built with the MSVC toolchain on Windows 95, the system reports an alignment error:

The RUSTICLE.EXE file is improperly linked with alignment less than 0x1000.  
Fix the error, and then link it again.

Details:
This suggests that the PE file does not meet Windows 95’s minimum alignment requirement of 0x1000.

Proposed Solution:
Introduce a build flag or configuration option to set /ALIGN:4096 when targeting legacy Windows platforms like Win9x. This would allow developers to opt into compatibility without manually patching the PE header.

Environment:

  • Rusticle v1.20.1
  • Target: i686-pc-windows-msvc
  • Host: Windows 95 VM via VirtualBox

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions