Skip to content

Please add an option to force memory page size, especially for cross-compiling #74390

Closed as not planned
@donmor

Description

@donmor

As stated in #10180, go detects the page size of specific platforms, and applies to built executables. In most case this should be fine, but there could still be problems:

  • ELFs built on 4k amd64 linux systems could be not able to run on 16k systems. This is proved as I'm making android GUI for gofrp, and their prebuilt amd64 executables can't be loaded on google's experimental 16k x64 emulators.
  • Sometimes it'll build ELFs targeting an old platform that is 4k and lack of space, but the building machine is 16k and makes the executable larger than expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureRequestIssues asking for a new feature that does not need a proposal.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions