From: Nick Clifton Date: Thu, 29 Nov 2001 16:05:59 +0000 (+0000) Subject: Mark _init and _fini as Thumb functions if compiled in thumb mode. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=38f90bec56b807e48a783e4c1372314627e1d833;p=gcc.git Mark _init and _fini as Thumb functions if compiled in thumb mode. From-SVN: r47441 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f0e9605d5c0..928e88cd300 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2001-11-29 Nick Clifton + + * 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 * config/mips/mips.c (override_options): Fix thinko in mips_tune 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