bfin.h (TARGET_CPU_CPP_BUILTINS): If TARGET_ID_SHARED_LIBRARY, define __ID_SHARED_LIB__.
* config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): If TARGET_ID_SHARED_LIBRARY, define __ID_SHARED_LIB__. * config/bfin/crti.S: Use it instead of __PIC__. * config/bfin/crtn.S: Likewise. From-SVN: r112006
This commit is contained in:
parent
a94aa2725e
commit
4af990cdc1
4 changed files with 12 additions and 6 deletions
|
@ -2,6 +2,10 @@
|
|||
|
||||
* config/bfin/lib1funcs.asm (___umodsi3): Use stack to save contents
|
||||
of RETS.
|
||||
* config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): If
|
||||
TARGET_ID_SHARED_LIBRARY, define __ID_SHARED_LIB__.
|
||||
* config/bfin/crti.S: Use it instead of __PIC__.
|
||||
* config/bfin/crtn.S: Likewise.
|
||||
|
||||
2006-03-13 Eric Botcazou <ebotcazou@adacore.com>
|
||||
|
||||
|
|
|
@ -41,6 +41,8 @@ extern int target_flags;
|
|||
{ \
|
||||
builtin_define ("bfin"); \
|
||||
builtin_define ("BFIN"); \
|
||||
if (TARGET_ID_SHARED_LIBRARY) \
|
||||
builtin_define ("__ID_SHARED_LIB__"); \
|
||||
} \
|
||||
while (0)
|
||||
#endif
|
||||
|
|
|
@ -38,21 +38,21 @@ Boston, MA 02110-1301, USA. */
|
|||
.globl __init
|
||||
.type __init,@function
|
||||
__init:
|
||||
#if defined __PIC__
|
||||
#if defined __ID_SHARED_LIB__
|
||||
[--SP] = P5;
|
||||
#endif
|
||||
LINK 12;
|
||||
#if defined __PIC__
|
||||
#if defined __ID_SHARED_LIB__
|
||||
P5 = [P5 + _current_shared_library_p5_offset_]
|
||||
#endif
|
||||
.section .fini
|
||||
.globl __fini
|
||||
.type __fini,@function
|
||||
__fini:
|
||||
#if defined __PIC__
|
||||
#if defined __ID_SHARED_LIB__
|
||||
[--SP] = P5;
|
||||
#endif
|
||||
LINK 12;
|
||||
#if defined __PIC__
|
||||
#if defined __ID_SHARED_LIB__
|
||||
P5 = [P5 + _current_shared_library_p5_offset_]
|
||||
#endif
|
||||
|
|
|
@ -36,14 +36,14 @@ Boston, MA 02110-1301, USA. */
|
|||
|
||||
.section .init
|
||||
unlink;
|
||||
#if defined __PIC__
|
||||
#if defined __ID_SHARED_LIB__
|
||||
P5 = [SP++];
|
||||
#endif
|
||||
rts;
|
||||
|
||||
.section .fini
|
||||
unlink;
|
||||
#if defined __PIC__
|
||||
#if defined __ID_SHARED_LIB__
|
||||
P5 = [SP++];
|
||||
#endif
|
||||
rts;
|
||||
|
|
Loading…
Add table
Reference in a new issue