Skip to content

Pass linker flag to set __THUNKS permission for NativeAOT #17629

@akoeplinger

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.

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