Skip to content

Entrypoint verification should work on Apple platforms #54784

Description

@vcsjones

If you add a new entry point in the unix shims, but forget to add it to entrypoints.c, you get a nice build error:

EXEC : error : /workspaces/runtime/src/libraries/Native/Unix/System.Security.Cryptography.Native/entrypoints.c file did not match entries exported from /workspaces/runtime/artifacts/obj/native/net6.0-Linux-Debug-x64/System.Security.Cryptography.Native/libSystem.Security.Cryptography.Native.OpenSsl.so [/workspaces/runtime/src/libraries/Native/build-native.proj]
  DIFFERENCES FOUND: 
  CryptoNative_Foob
  ninja: build stopped: subcommand failed.

This does not appear to work for macOS. Adding a new exported function and omitting it from entrypoints.c does not fail the build.

Metadata

Metadata

Assignees

Labels

untriagedNew issue has not been triaged by the area owner

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions