summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2006-07-24 16:49:07 +0000
committerNathan Sidwell <nathan@codesourcery.com>2006-07-24 16:49:07 +0000
commit25ae6bd7e2c9d5f493122eed18a9f0e400d3fe35 (patch)
tree481bb3a75fef5471fcfd79af3c95d0bae9279a32
parent43de4ec74d557bc6e65fd12b6de7708f7a3e7138 (diff)
downloadcygnal-25ae6bd7e2c9d5f493122eed18a9f0e400d3fe35.tar.gz
cygnal-25ae6bd7e2c9d5f493122eed18a9f0e400d3fe35.tar.bz2
cygnal-25ae6bd7e2c9d5f493122eed18a9f0e400d3fe35.zip
libgloss/
* m68k/cf.sc: Set entry point to _start. * m68k/crt0.X (_start): New name for entrypoint (start): Weak alias for start.
-rw-r--r--ChangeLog.csl7
-rw-r--r--libgloss/m68k/cf.sc2
-rw-r--r--libgloss/m68k/crt0.S10
3 files changed, 16 insertions, 3 deletions
diff --git a/ChangeLog.csl b/ChangeLog.csl
index 677486cae..c37b25668 100644
--- a/ChangeLog.csl
+++ b/ChangeLog.csl
@@ -1,3 +1,10 @@
+2006-07-24 Nathan Sidwell <nathan@codesourcery.com>
+
+ libgloss/
+ * m68k/cf.sc: Set entry point to _start.
+ * m68k/crt0.X (_start): New name for entrypoint
+ (start): Weak alias for start.
+
2006-06-23 Mark Mitchell <mark@codesourcery.com>
Issue #754
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
*/