diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2006-07-24 20:49:07 +0400 |
---|---|---|
committer | Nathan Sidwell <nathan@codesourcery.com> | 2006-07-24 20:49:07 +0400 |
commit | 25ae6bd7e2c9d5f493122eed18a9f0e400d3fe35 (patch) | |
tree | 481bb3a75fef5471fcfd79af3c95d0bae9279a32 /libgloss | |
parent | 43de4ec74d557bc6e65fd12b6de7708f7a3e7138 (diff) |
libgloss/
* m68k/cf.sc: Set entry point to _start.
* m68k/crt0.X (_start): New name for entrypoint
(start): Weak alias for start.
Diffstat (limited to 'libgloss')
-rw-r--r-- | libgloss/m68k/cf.sc | 2 | ||||
-rw-r--r-- | libgloss/m68k/crt0.S | 10 |
2 files changed, 9 insertions, 3 deletions
diff --git a/libgloss/m68k/cf.sc b/libgloss/m68k/cf.sc index 2f8865405..01b07b9dc 100644 --- a/libgloss/m68k/cf.sc +++ b/libgloss/m68k/cf.sc @@ -8,7 +8,7 @@ cat <<EOF STARTUP(crt0.o) OUTPUT_ARCH(m68k) -ENTRY(start) +ENTRY(_start) SEARCH_DIR(.) GROUP(-lc -l${IO}) __DYNAMIC = 0; diff --git a/libgloss/m68k/crt0.S b/libgloss/m68k/crt0.S index 1aa0dd6bb..4c916283f 100644 --- a/libgloss/m68k/crt0.S +++ b/libgloss/m68k/crt0.S @@ -52,11 +52,17 @@ SYM (environ): .extern _end /* - * set things up so the application will run. This *must* be called start. + * Set things up so the application will run. For historical reasons + * this is called 'start'. We set things up to provide '_start' + * as with other systems, but also provide a weak alias called + * 'start' for compatibility with existing linker scripts. */ .global SYM (start) + .weak SYM (start) + .set SYM (start),SYM(_start) -SYM (start): + .global SYM (_start) +SYM (_start): /* * put any hardware init code here */ |