diff options
Diffstat (limited to 'libgloss/arm/crt0.S')
-rw-r--r-- | libgloss/arm/crt0.S | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libgloss/arm/crt0.S b/libgloss/arm/crt0.S index 7f36b12fc..b5633368d 100644 --- a/libgloss/arm/crt0.S +++ b/libgloss/arm/crt0.S @@ -21,6 +21,10 @@ start: _start: _mainCRTStartup: +#if defined(__ELF__) && !defined(__USING_SJLJ_EXCEPTIONS__) + /* Annotation for EABI unwinding tables. */ + .fnstart +#endif /* Start by setting up a stack */ #ifdef ARM_RDP_MONITOR @@ -329,6 +333,11 @@ change_back: #endif #endif +#if defined(__ELF__) && !defined(__USING_SJLJ_EXCEPTIONS__) + /* Protect against unhandled exceptions. */ + .cantunwind + .fnend +#endif .LC1: .word __bss_start__ .LC2: |