diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2003-10-27 20:03:10 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2003-10-27 20:03:10 +0000 |
commit | bfe5ae413f342eb424ff2f812a2f4fbf1a992135 (patch) | |
tree | 34f1b62e7e3d48ea434872d5e60b4f251c6f1b35 /libgloss/m68k/sim-crt0.S | |
parent | 56a4ceac3dcc1247239862db270688a6ca6ed2a2 (diff) | |
download | cygnal-bfe5ae413f342eb424ff2f812a2f4fbf1a992135.tar.gz cygnal-bfe5ae413f342eb424ff2f812a2f4fbf1a992135.tar.bz2 cygnal-bfe5ae413f342eb424ff2f812a2f4fbf1a992135.zip |
2003-10-27 Bernardo Innocenti <bernie@develer.com>
* m68k/asm.h: Add macros for -fPIC, -msep-data and
-mid-shared-library support.
* m68k/crt0.S: Use macros for -fPIC, -msep-data and
-mid-shared-library support.
* m68k/sim-crt0.S: Likewise.
Diffstat (limited to 'libgloss/m68k/sim-crt0.S')
-rw-r--r-- | libgloss/m68k/sim-crt0.S | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libgloss/m68k/sim-crt0.S b/libgloss/m68k/sim-crt0.S index bc255142c..49f77778c 100644 --- a/libgloss/m68k/sim-crt0.S +++ b/libgloss/m68k/sim-crt0.S @@ -78,7 +78,7 @@ SYM (start): subql IMM(1), d0 2: clrb (a0)+ -#ifndef __mcf5200__ +#if !defined(__mcoldfire__) && !defined(__mcf5200__) dbra d0, 2b clrw d0 subql IMM(1), d0 @@ -99,18 +99,18 @@ SYM (start): #ifdef ADD_DTORS /* put __do_global_dtors in the atexit list so the destructors get run */ movel IMM (SYM(__do_global_dtors)),(sp) - jsr SYM (atexit) + PICCALL SYM (atexit) #endif movel IMM (__FINI_SECTION__),(sp) - jsr SYM (atexit) + PICCALL SYM (atexit) - jsr __INIT_SECTION__ + PICCALL __INIT_SECTION__ pea 0 - pea SYM (environ) + PICPEA SYM (environ),a0 pea sp@(4) pea 0 - jsr SYM (main) + PICCALL SYM (main) movel d0, sp@- /* @@ -118,4 +118,4 @@ SYM (start): * control back to the ROM monitor, if there is one. This calls the * exit() from the C library so the C++ tables get cleaned up right. */ - jsr SYM (exit) + PICCALL SYM (exit) |