Skip to content

Conversation

@xdoardo
Copy link
Collaborator

@xdoardo xdoardo commented Jun 9, 2025

This change is needed to replicate the same behaviour exhibited in the macros.

This is useful in instances where a sealed value must be provided by an external source: an example of this need is this definition in cheriot-rtos' stdlib: here, if CHERIOT_CUSTOM_DEFAULT_MALLOC_CAPABILITY is defined, compilation fails (because the __default_malloc_capability symbol is undefined) if no extern <...> __default_malloc_capability is given.

This PR also fixes the related semantic checks.

@xdoardo xdoardo merged commit 14099cb into CHERIoT-Platform:cheriot Jun 9, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants