Mark _init and _fini as Thumb functions if compiled in thumb mode.
authorNick Clifton <nickc@cambridge.redhat.com>
Thu, 29 Nov 2001 16:05:59 +0000 (16:05 +0000)
committerNick Clifton <nickc@gcc.gnu.org>
Thu, 29 Nov 2001 16:05:59 +0000 (16:05 +0000)
From-SVN: r47441

gcc/ChangeLog
gcc/config/arm/crti.asm

index f0e9605d5c0816a39a133b3c597a2c0266c108a7..928e88cd3002d7daa9c07788a84e984fe7744d8f 100644 (file)
@@ -1,3 +1,9 @@
+2001-11-29  Nick Clifton  <nickc@cambridge.redhat.com>
+
+       * config/arm/crti.asm (_init): Add .thumb_func if compiled
+        with -mthumb.
+        (_fini): Add .thumb_func if compiled with -mthumb.
+
 2001-11-28  Eric Christopher  <echristo@redhat.com>
 
        * config/mips/mips.c (override_options): Fix thinko in mips_tune
index 3799e927f1ea66061a69e42f8d23496889dd3001..f3741db2bed320254a63e13a1ab8458e5c7888d9 100644 (file)
@@ -57,6 +57,9 @@
        .section        ".init"
        .align 2
        .global _init
+#ifdef __thumb__
+       .thumb_func
+#endif
 _init:
        FUNC_START
        
@@ -64,6 +67,9 @@ _init:
        .section        ".fini"
        .align  2
        .global _fini
+#ifdef __thumb__
+       .thumb_func
+#endif
 _fini:
        FUNC_START