aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2004-08-25 12:54:15 +0000
committerNick Clifton <nickc@redhat.com>2004-08-25 12:54:15 +0000
commitb18c562e39c5c3ee63032a9a0aa9b7571343fd58 (patch)
tree0a1ab4cf2ca014da6f955028f9410e6b59ce57e8 /ld
parent61f5d0545d98ab8252082db2bf10cdd40af51cee (diff)
downloadbinutils-b18c562e39c5c3ee63032a9a0aa9b7571343fd58.zip
binutils-b18c562e39c5c3ee63032a9a0aa9b7571343fd58.tar.gz
binutils-b18c562e39c5c3ee63032a9a0aa9b7571343fd58.tar.bz2
Apply Dmitry Diky's patches to add relaxation to msp430.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog5
-rw-r--r--ld/emulparams/msp430all.sh34
-rw-r--r--ld/scripttempl/elf32msp430.sc3
3 files changed, 25 insertions, 17 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 9ca82f6..413deac 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,8 @@
+2004-08-25 Dmitry Diky <diwil@spec.ru>
+
+ * emulparams/msp430all.sh: Fix RAM sizes for all targets.
+ * scripttempl/elf32msp430.sc: Add .profiler section definition.
+
2004-08-24 H.J. Lu <hongjiu.lu@intel.com>
* ldlang.c (wildcardp): Defined as a macro with strpbrk.
diff --git a/ld/emulparams/msp430all.sh b/ld/emulparams/msp430all.sh
index e2ecc0d..f6f2b46 100644
--- a/ld/emulparams/msp430all.sh
+++ b/ld/emulparams/msp430all.sh
@@ -288,7 +288,7 @@ TEMPLATE_NAME=generic
ROM_START=0x4000
ROM_SIZE=0xbfe0
RAM_START=0x0200
-RAM_SIZE=0x07ff
+RAM_SIZE=0x0800
STACK=0xa00
fi
@@ -305,7 +305,7 @@ TEMPLATE_NAME=generic
ROM_START=0x1100
ROM_SIZE=0xeee0
RAM_START=0x0200
-RAM_SIZE=0x07ff
+RAM_SIZE=0x0800
STACK=0xa00
fi
@@ -390,7 +390,7 @@ TEMPLATE_NAME=generic
ROM_START=0x4000
ROM_SIZE=0xbfe0
RAM_START=0x0200
-RAM_SIZE=0x07ff
+RAM_SIZE=0x0800
STACK=0xa00
fi
@@ -407,7 +407,7 @@ TEMPLATE_NAME=generic
ROM_START=0x1100
ROM_SIZE=0xeee0
RAM_START=0x0200
-RAM_SIZE=0x07ff
+RAM_SIZE=0x0800
STACK=0xa00
fi
@@ -424,9 +424,9 @@ TEMPLATE_NAME=generic
ROM_START=0x8000
ROM_SIZE=0x7fe0
RAM_START=0x1100
-RAM_SIZE=0x13ff
+RAM_SIZE=0x1400
-STACK=0x1400
+STACK=0x2500
fi
if [ "${MSP430_NAME}" = "msp430x1611" ] ; then
@@ -441,9 +441,9 @@ TEMPLATE_NAME=generic
ROM_START=0x4000
ROM_SIZE=0xbfe0
RAM_START=0x1100
-RAM_SIZE=0x27ff
+RAM_SIZE=0x2800
-STACK=0x2800
+STACK=0x3900
fi
if [ "${MSP430_NAME}" = "msp430x1612" ] ; then
@@ -455,12 +455,12 @@ MAXPAGESIZE=1
EMBEDDED=yes
TEMPLATE_NAME=generic
-ROM_START=0x2800
-ROM_SIZE=0xd7e0
+ROM_START=0x2500
+ROM_SIZE=0xdae0
RAM_START=0x1100
-RAM_SIZE=0x13ff
+RAM_SIZE=0x1400
-STACK=0x1400
+STACK=0x2500
fi
if [ "${MSP430_NAME}" = "msp430x311" ] ; then
@@ -764,7 +764,7 @@ TEMPLATE_NAME=generic
ROM_START=0x4000
ROM_SIZE=0xbfe0
RAM_START=0x0200
-RAM_SIZE=0x07ff
+RAM_SIZE=0x0800
STACK=0xa00
fi
@@ -781,7 +781,7 @@ TEMPLATE_NAME=generic
ROM_START=0x1100
ROM_SIZE=0xeee0
RAM_START=0x0200
-RAM_SIZE=0x07ff
+RAM_SIZE=0x0800
STACK=0xa00
fi
@@ -866,7 +866,7 @@ TEMPLATE_NAME=generic
ROM_START=0x4000
ROM_SIZE=0xbef0
RAM_START=0x0200
-RAM_SIZE=0x07ff
+RAM_SIZE=0x0800
STACK=0xa00
fi
@@ -883,7 +883,7 @@ TEMPLATE_NAME=generic
ROM_START=0x1100
ROM_SIZE=0xeee0
RAM_START=0x0200
-RAM_SIZE=0x07ff
+RAM_SIZE=0x0800
STACK=0xa00
fi
@@ -934,7 +934,7 @@ TEMPLATE_NAME=generic
ROM_START=0x8000
ROM_SIZE=0x7fe0
RAM_START=0x0200
-RAM_SIZE=1K
+RAM_SIZE=0x400
STACK=0x600
fi
diff --git a/ld/scripttempl/elf32msp430.sc b/ld/scripttempl/elf32msp430.sc
index 5754d66..cbffe48 100644
--- a/ld/scripttempl/elf32msp430.sc
+++ b/ld/scripttempl/elf32msp430.sc
@@ -202,6 +202,9 @@ SECTIONS
${HEAP_SECTION_MSP430}
+ /* Stabs for profiling information*/
+ .profiler 0 : { *(.profiler) }
+
/* Stabs debugging sections. */
.stab 0 : { *(.stab) }
.stabstr 0 : { *(.stabstr) }