* config/arm/crti.asm: Give _init and _fini function type.
authorPaul Brook <paul@codesourcery.com>
Fri, 1 Oct 2004 18:30:22 +0000 (18:30 +0000)
committerPaul Brook <pbrook@gcc.gnu.org>
Fri, 1 Oct 2004 18:30:22 +0000 (18:30 +0000)
From-SVN: r88405

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

index f5e780e8cc2e21d16bad3ede963aa370acd26025..1590e2d9b027e0e033a74317e850eaa83fd41382 100644 (file)
@@ -1,3 +1,7 @@
+2004-10-01  Paul Brook  <paul@codesourcery.com>
+
+       * config/arm/crti.asm: Give _init and _fini function type.
+
 2004-10-01  Zdenek Dvorak  <dvorakz@suse.cz>
 
        * common.opt (ftree-loop-ivcanon): Enable by default.
@@ -6,7 +10,7 @@
        (canonicalize_induction_variables, tree_unroll_loops_completely):
        Reset scev info.
 
-2004-01-01  Paul Brook  <paul@codesourcery.com>
+2004-10-01  Paul Brook  <paul@codesourcery.com>
 
        * config/arm/arm.c (thumb_compute_saved_rag_mask): Or with bitmask,
        not register number.
index 3597e42b02eb2d756a3758c1d018b55524e88a28..4b47f41290e2636c6a4d22e87be21854f53ddef3 100644 (file)
 # .init sections.  Users may put any desired instructions in those
 # sections.
 
+#ifdef __ELF__
+#define TYPE(x) .type x,function
+#else
+#define TYPE(x)
+#endif
+
        # Note - this macro is complemented by the FUNC_END macro
        # in crtn.asm.  If you change this macro you must also change
        # that macro match.
@@ -60,6 +66,7 @@
 #ifdef __thumb__
        .thumb_func
 #endif
+       TYPE(_init)
 _init:
        FUNC_START
        
@@ -70,6 +77,7 @@ _init:
 #ifdef __thumb__
        .thumb_func
 #endif
+       TYPE(_fini)
 _fini:
        FUNC_START