Skip to content

-fno-builtin breaks CHERIoT RTOS setjmp in C #118

@davidchisnall

Description

@davidchisnall

The implementation of setjmp is provided as some module-level inline assembly as a COMDAT function. If we pass -fno-builtin, then this is found in C and C++. If we do not, then C++ still finds it but C does not and then setjmp is expanded to a libcall later. I believe that we need to mark the calling convention of setjmp and longjmp as C (we currently mark all builtins as CHERI_LIBCALL).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions