Skip to content

Pass linker flag to set __THUNKS permission for NativeAOT #17629

Closed

Description

@akoeplinger

dotnet/runtime#82317 implemented marshalled delegate support for NativeAOT via generating thunk pages.
We need the -Wl,-segprot,__THUNKS,rx,rx linker flag to set the correct permissions on the segment.

Note: depending on how we'll integrate the NativeAOT targets into xamarin-macios this might be automatically handled, filing this just so we don't forget it if we don't use the NativeAOT targets.

Activity

  1. added this to the .NET 8 milestone on Feb 27, 2023
  2. rolfbjarne commented on Jun 20, 2023

    @rolfbjarne
    Member

    @akoeplinger I believe we don't need to do anything here, the logic to pass these linker flags was implemented in dotnet/runtime here: dotnet/runtime@75a32b8

  3. filipnavara commented on Jun 20, 2023

    @filipnavara
    Member

    Yep, we can close this. As long as the linker flags are inherited from the NativeAOT logic we should be fine.

  4. ghost locked as resolved and limited conversation to collaborators on Jul 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions