aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2004-11-26 16:43:35 +0000
committerJeff Johnston <jjohnstn@redhat.com>2004-11-26 16:43:35 +0000
commit60e4d52a558c9af31d27e79de27dfaaa89b00184 (patch)
treea3c0a011603a6040c540087b0707f872a32839ed
parenta330d85a45a30ba3ece7d67af34bb8aaead27957 (diff)
downloadnewlib-60e4d52a558c9af31d27e79de27dfaaa89b00184.zip
newlib-60e4d52a558c9af31d27e79de27dfaaa89b00184.tar.gz
newlib-60e4d52a558c9af31d27e79de27dfaaa89b00184.tar.bz2
2004-11-26 Paul Brook <paul@codesourcery.com>
* arm/crt0.S (_start): Add .cantunwind annotation.
-rw-r--r--libgloss/ChangeLog4
-rw-r--r--libgloss/arm/crt0.S9
2 files changed, 13 insertions, 0 deletions
diff --git a/libgloss/ChangeLog b/libgloss/ChangeLog
index 010e8f1..a0d6e2d 100644
--- a/libgloss/ChangeLog
+++ b/libgloss/ChangeLog
@@ -1,3 +1,7 @@
+2004-11-26 Paul Brook <paul@codesourcery.com>
+
+ * libc/sys/arm/crt0.S (_start): Add .cantunwind annotation.
+
2004-10-28 Nick Clifton <nickc@redhat.com>
* configure.in: Add support for iq2000 target.
diff --git a/libgloss/arm/crt0.S b/libgloss/arm/crt0.S
index 7f36b12..b563336 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: