Mark _init and _fini as Thumb functions if compiled in thumb mode.

From-SVN: r47441
This commit is contained in:
Nick Clifton 2001-11-29 16:05:59 +00:00 committed by Nick Clifton
parent 243ebca042
commit 38f90bec56
2 changed files with 12 additions and 0 deletions

View 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

View 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