I want to override the default exception handler. I see it's a weak symbol so all it should take is to create a function with the same name and signature, right? So I created a file called handlers.c with the following content:
Code: Select all
#include <stdbool.h>
void _unhandled_exception(void) {
while (true) {
}
}
I made sure it's compiled and linked. Yet the weak version is called. Any ideas what's wrong?
Thanks!