summaryrefslogtreecommitdiff
path: root/gcc/config/arm/crti.asm
diff options
context:
space:
mode:
authornickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>2001-11-29 16:05:59 +0000
committernickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>2001-11-29 16:05:59 +0000
commit2fb66d013fa96007ae358d925d03272207654c0e (patch)
tree574d296e88a5c477212123aec038611771d1e8c4 /gcc/config/arm/crti.asm
parentdb4d021901289187205ea08f0cf3910fd0b9fceb (diff)
downloadgcc-2fb66d013fa96007ae358d925d03272207654c0e.tar.gz
Mark _init and _fini as Thumb functions if compiled in thumb mode.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47441 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/arm/crti.asm')
-rw-r--r--gcc/config/arm/crti.asm6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/config/arm/crti.asm b/gcc/config/arm/crti.asm
index 3799e927f1e..f3741db2bed 100644
--- a/gcc/config/arm/crti.asm
+++ b/gcc/config/arm/crti.asm
@@ -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