aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2013-09-30 09:03:59 +0000
committerNick Clifton <nickc@redhat.com>2013-09-30 09:03:59 +0000
commitcbb2b07e3398d52f52f27f015562b8deff884541 (patch)
tree8561fe80f2abd30f5c1427d2e72a5aa1eeeef78f
parentb9bd7559c7c2b8a672fe06c63d02d9a845e99c28 (diff)
downloadfsf-binutils-gdb-cbb2b07e3398d52f52f27f015562b8deff884541.zip
fsf-binutils-gdb-cbb2b07e3398d52f52f27f015562b8deff884541.tar.gz
fsf-binutils-gdb-cbb2b07e3398d52f52f27f015562b8deff884541.tar.bz2
* emulparams/msp430all.sh: Update ARCH names.
* cpu-msp430.c: Use printable names that match the values displayed by readelf.
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/cpu-msp430.c48
-rw-r--r--ld/ChangeLog4
-rw-r--r--ld/emulparams/msp430all.sh100
4 files changed, 83 insertions, 74 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 25f41c7..57bafdc 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2013-09-30 Nick Clifton <nickc@redhat.com>
+
+ * cpu-msp430.c: Use printable names that match the values
+ displayed by readelf.
+
2013-08-25 Andrew Pinski <apinski@cavium.com>
* elfnn-aarch64.c (TCB_SIZE): Base on the ARCH_SIZE rather than a
diff --git a/bfd/cpu-msp430.c b/bfd/cpu-msp430.c
index 73b6e66..d15ba55 100644
--- a/bfd/cpu-msp430.c
+++ b/bfd/cpu-msp430.c
@@ -61,75 +61,75 @@ compatible (const bfd_arch_info_type * a,
static const bfd_arch_info_type arch_info_struct[] =
{
/* msp430x11x. */
- N (16, bfd_mach_msp11, "msp:11", FALSE, & arch_info_struct[1]),
+ N (16, bfd_mach_msp11, "MSP430", FALSE, & arch_info_struct[1]),
/* msp430x11x1. */
- N (16, bfd_mach_msp110, "msp:110", FALSE, & arch_info_struct[2]),
+ N (16, bfd_mach_msp110, "MSP430x11x1", FALSE, & arch_info_struct[2]),
/* msp430x12x. */
- N (16, bfd_mach_msp12, "msp:12", FALSE, & arch_info_struct[3]),
+ N (16, bfd_mach_msp12, "MSP430x12", FALSE, & arch_info_struct[3]),
/* msp430x13x. */
- N (16, bfd_mach_msp13, "msp:13", FALSE, & arch_info_struct[4]),
+ N (16, bfd_mach_msp13, "MSP430x13", FALSE, & arch_info_struct[4]),
/* msp430x14x. */
- N (16, bfd_mach_msp14, "msp:14", FALSE, & arch_info_struct[5]),
+ N (16, bfd_mach_msp14, "MSP430x14", FALSE, & arch_info_struct[5]),
/* msp430x15x. */
- N (16, bfd_mach_msp15, "msp:15", FALSE, & arch_info_struct[6]),
+ N (16, bfd_mach_msp15, "MSP430x15", FALSE, & arch_info_struct[6]),
/* msp430x16x. */
- N (16, bfd_mach_msp16, "msp:16", FALSE, & arch_info_struct[7]),
+ N (16, bfd_mach_msp16, "MSP430x16", FALSE, & arch_info_struct[7]),
/* msp430x20x. */
- N (16, bfd_mach_msp20, "msp:20", FALSE, & arch_info_struct[8]),
+ N (16, bfd_mach_msp20, "MSP430x20", FALSE, & arch_info_struct[8]),
/* msp430x21x. */
- N (16, bfd_mach_msp21, "msp:21", FALSE, & arch_info_struct[9]),
+ N (16, bfd_mach_msp21, "MSP430x21", FALSE, & arch_info_struct[9]),
/* msp430x22x. */
- N (16, bfd_mach_msp22, "msp:22", FALSE, & arch_info_struct[10]),
+ N (16, bfd_mach_msp22, "MSP430x22", FALSE, & arch_info_struct[10]),
/* msp430x23x. */
- N (16, bfd_mach_msp23, "msp:23", FALSE, & arch_info_struct[11]),
+ N (16, bfd_mach_msp23, "MSP430x23", FALSE, & arch_info_struct[11]),
/* msp430x24x. */
- N (16, bfd_mach_msp24, "msp:24", FALSE, & arch_info_struct[12]),
+ N (16, bfd_mach_msp24, "MSP430x24", FALSE, & arch_info_struct[12]),
/* msp430x26x. */
- N (16, bfd_mach_msp26, "msp:26", FALSE, & arch_info_struct[13]),
+ N (16, bfd_mach_msp26, "MSP430x26", FALSE, & arch_info_struct[13]),
/* msp430x31x. */
- N (16, bfd_mach_msp31, "msp:31", FALSE, & arch_info_struct[14]),
+ N (16, bfd_mach_msp31, "MSP430x31", FALSE, & arch_info_struct[14]),
/* msp430x32x. */
- N (16, bfd_mach_msp32, "msp:32", FALSE, & arch_info_struct[15]),
+ N (16, bfd_mach_msp32, "MSP430x32", FALSE, & arch_info_struct[15]),
/* msp430x33x. */
- N (16, bfd_mach_msp33, "msp:33", FALSE, & arch_info_struct[16]),
+ N (16, bfd_mach_msp33, "MSP430x33", FALSE, & arch_info_struct[16]),
/* msp430x41x. */
- N (16, bfd_mach_msp41, "msp:41", FALSE, & arch_info_struct[17]),
+ N (16, bfd_mach_msp41, "MSP430x41", FALSE, & arch_info_struct[17]),
/* msp430x42x. */
- N (16, bfd_mach_msp42, "msp:42", FALSE, & arch_info_struct[18]),
+ N (16, bfd_mach_msp42, "MSP430x42", FALSE, & arch_info_struct[18]),
/* msp430x43x. */
- N (16, bfd_mach_msp43, "msp:43", FALSE, & arch_info_struct[19]),
+ N (16, bfd_mach_msp43, "MSP430x43", FALSE, & arch_info_struct[19]),
/* msp430x44x. */
- N (16, bfd_mach_msp43, "msp:44", FALSE, & arch_info_struct[20]),
+ N (16, bfd_mach_msp43, "MSP430x44", FALSE, & arch_info_struct[20]),
/* msp430x46x. */
- N (16, bfd_mach_msp46, "msp:46", FALSE, & arch_info_struct[21]),
+ N (16, bfd_mach_msp46, "MSP430x46", FALSE, & arch_info_struct[21]),
/* msp430x47x. */
- N (16, bfd_mach_msp47, "msp:47", FALSE, & arch_info_struct[22]),
+ N (16, bfd_mach_msp47, "MSP430x47", FALSE, & arch_info_struct[22]),
/* msp430x54x. */
- N (16, bfd_mach_msp54, "msp:54", FALSE, & arch_info_struct[23]),
+ N (16, bfd_mach_msp54, "MSP430x54", FALSE, & arch_info_struct[23]),
- N (32, bfd_mach_msp430x, "msp:430X", FALSE, NULL)
+ N (32, bfd_mach_msp430x, "MSP430X", FALSE, NULL)
};
diff --git a/ld/ChangeLog b/ld/ChangeLog
index e93bdea..87f8343 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,7 @@
+2013-09-30 Nick Clifton <nickc@redhat.com>
+
+ * emulparams/msp430all.sh: Update ARCH names.
+
2013-09-24 Alan Modra <amodra@gmail.com>
* emulparams/elf32ppccommon.sh (LIBPATH_SUFFIX): Provide 32-bit
diff --git a/ld/emulparams/msp430all.sh b/ld/emulparams/msp430all.sh
index 3a2f79d..33d975e 100644
--- a/ld/emulparams/msp430all.sh
+++ b/ld/emulparams/msp430all.sh
@@ -13,7 +13,7 @@ MAXPAGESIZE=1
EMBEDDED=yes
if [ "${MSP430_NAME}" = "msp430x110" ] ; then
-ARCH=msp:11
+ARCH=MSP430
ROM_START=0xfc00
ROM_SIZE=0x3e0
RAM_START=0x0200
@@ -22,7 +22,7 @@ STACK=0x280
fi
if [ "${MSP430_NAME}" = "msp430x1101" ] ; then
-ARCH=msp:110
+ARCH=MSP430x11x1
ROM_START=0xfc00
ROM_SIZE=0x3e0
RAM_START=0x0200
@@ -31,7 +31,7 @@ STACK=0x280
fi
if [ "${MSP430_NAME}" = "msp430x1111" ] ; then
-ARCH=msp:110
+ARCH=MSP430x11x1
ROM_START=0xf800
ROM_SIZE=0x07e0
RAM_START=0x0200
@@ -40,7 +40,7 @@ STACK=0x280
fi
if [ "${MSP430_NAME}" = "msp430x112" ] ; then
-ARCH=msp:11
+ARCH=MSP430
ROM_START=0xf000
ROM_SIZE=0xfe0
RAM_START=0x0200
@@ -49,7 +49,7 @@ STACK=0x300
fi
if [ "${MSP430_NAME}" = "msp430x1121" ] ; then
-ARCH=msp:110
+ARCH=MSP430x11x1
ROM_START=0xf000
ROM_SIZE=0x0fe0
RAM_START=0x0200
@@ -58,7 +58,7 @@ STACK=0x300
fi
if [ "${MSP430_NAME}" = "msp430x1122" ] ; then
-ARCH=msp:110
+ARCH=MSP430x11x1
ROM_START=0xf000
ROM_SIZE=0x0fe0
RAM_START=0x0200
@@ -67,7 +67,7 @@ STACK=0x300
fi
if [ "${MSP430_NAME}" = "msp430x1132" ] ; then
-ARCH=msp:110
+ARCH=MSP430x11x1
ROM_START=0xe000
ROM_SIZE=0x1fe0
RAM_START=0x0200
@@ -85,7 +85,7 @@ STACK=0x300
fi
if [ "${MSP430_NAME}" = "msp430x1222" ] ; then
-ARCH=msp:12
+ARCH=MSP430x12
ROM_START=0xf000
ROM_SIZE=0xfe0
RAM_START=0x0200
@@ -94,7 +94,7 @@ STACK=0x300
fi
if [ "${MSP430_NAME}" = "msp430x123" ] ; then
-ARCH=msp:12
+ARCH=MSP430x12
ROM_START=0xe000
ROM_SIZE=0x1fe0
RAM_START=0x0200
@@ -103,7 +103,7 @@ STACK=0x300
fi
if [ "${MSP430_NAME}" = "msp430x1232" ] ; then
-ARCH=msp:12
+ARCH=MSP430x12
ROM_START=0xe000
ROM_SIZE=0x1fe0
RAM_START=0x0200
@@ -112,7 +112,7 @@ STACK=0x300
fi
if [ "${MSP430_NAME}" = "msp430x133" ] ; then
-ARCH=msp:13
+ARCH=MSP430x13
ROM_START=0xe000
ROM_SIZE=0x1fe0
RAM_START=0x0200
@@ -121,7 +121,7 @@ STACK=0x300
fi
if [ "${MSP430_NAME}" = "msp430x1331" ] ; then
-ARCH=msp:13
+ARCH=MSP430x13
ROM_START=0xe000
ROM_SIZE=0x1fe0
RAM_START=0x0200
@@ -130,7 +130,7 @@ STACK=0x300
fi
if [ "${MSP430_NAME}" = "msp430x135" ] ; then
-ARCH=msp:13
+ARCH=MSP430x13
ROM_START=0xc000
ROM_SIZE=0x3fe0
RAM_START=0x0200
@@ -139,7 +139,7 @@ STACK=0x400
fi
if [ "${MSP430_NAME}" = "msp430x1351" ] ; then
-ARCH=msp:13
+ARCH=MSP430x13
ROM_START=0xc000
ROM_SIZE=0x3fe0
RAM_START=0x0200
@@ -148,7 +148,7 @@ STACK=0x400
fi
if [ "${MSP430_NAME}" = "msp430x147" ] ; then
-ARCH=msp:14
+ARCH=MSP430x14
ROM_START=0x8000
ROM_SIZE=0x7fe0
RAM_START=0x0200
@@ -157,7 +157,7 @@ STACK=0x600
fi
if [ "${MSP430_NAME}" = "msp430x148" ] ; then
-ARCH=msp:14
+ARCH=MSP430x14
ROM_START=0x4000
ROM_SIZE=0xbfe0
RAM_START=0x0200
@@ -166,7 +166,7 @@ STACK=0xa00
fi
if [ "${MSP430_NAME}" = "msp430x149" ] ; then
-ARCH=msp:14
+ARCH=MSP430x14
ROM_START=0x1100
ROM_SIZE=0xeee0
RAM_START=0x0200
@@ -175,7 +175,7 @@ STACK=0xa00
fi
if [ "${MSP430_NAME}" = "msp430x155" ] ; then
-ARCH=msp:15
+ARCH=MSP430x15
ROM_START=0xc000
ROM_SIZE=0x3fe0
RAM_START=0x0200
@@ -184,7 +184,7 @@ STACK=0x400
fi
if [ "${MSP430_NAME}" = "msp430x156" ] ; then
-ARCH=msp:15
+ARCH=MSP430x15
ROM_START=0xa000
ROM_SIZE=0x5fe0
RAM_START=0x0200
@@ -193,7 +193,7 @@ STACK=0x400
fi
if [ "${MSP430_NAME}" = "msp430x157" ] ; then
-ARCH=msp:15
+ARCH=MSP430x15
ROM_START=0x8000
ROM_SIZE=0x7fe0
RAM_START=0x0200
@@ -202,7 +202,7 @@ STACK=0x600
fi
if [ "${MSP430_NAME}" = "msp430x167" ] ; then
-ARCH=msp:16
+ARCH=MSP430X16
ROM_START=0x8000
ROM_SIZE=0x7fe0
RAM_START=0x0200
@@ -211,7 +211,7 @@ STACK=0x600
fi
if [ "${MSP430_NAME}" = "msp430x168" ] ; then
-ARCH=msp:16
+ARCH=MSP430X16
ROM_START=0x4000
ROM_SIZE=0xbfe0
RAM_START=0x0200
@@ -220,7 +220,7 @@ STACK=0xa00
fi
if [ "${MSP430_NAME}" = "msp430x169" ] ; then
-ARCH=msp:16
+ARCH=MSP430X16
ROM_START=0x1100
ROM_SIZE=0xeee0
RAM_START=0x0200
@@ -229,7 +229,7 @@ STACK=0xa00
fi
if [ "${MSP430_NAME}" = "msp430x1610" ] ; then
-ARCH=msp:16
+ARCH=MSP430X16
ROM_START=0x8000
ROM_SIZE=0x7fe0
RAM_START=0x1100
@@ -238,7 +238,7 @@ STACK=0x2500
fi
if [ "${MSP430_NAME}" = "msp430x1611" ] ; then
-ARCH=msp:16
+ARCH=MSP430X16
ROM_START=0x4000
ROM_SIZE=0xbfe0
RAM_START=0x1100
@@ -247,7 +247,7 @@ STACK=0x3900
fi
if [ "${MSP430_NAME}" = "msp430x1612" ] ; then
-ARCH=msp:16
+ARCH=MSP430X16
ROM_START=0x2500
ROM_SIZE=0xdae0
RAM_START=0x1100
@@ -256,7 +256,7 @@ STACK=0x2500
fi
if [ "${MSP430_NAME}" = "msp430x2101" ] ; then
-ARCH=msp:21
+ARCH=MSP430x21
ROM_START=0xFC00
ROM_SIZE=0x03e0
RAM_START=0x0200
@@ -265,7 +265,7 @@ STACK=0x280
fi
if [ "${MSP430_NAME}" = "msp430x2111" ] ; then
-ARCH=msp:21
+ARCH=MSP430x21
ROM_START=0xF800
ROM_SIZE=0x07e0
RAM_START=0x0200
@@ -274,7 +274,7 @@ STACK=0x280
fi
if [ "${MSP430_NAME}" = "msp430x2121" ] ; then
-ARCH=msp:21
+ARCH=MSP430x21
ROM_START=0xf000
ROM_SIZE=0x0fe0
RAM_START=0x0200
@@ -283,7 +283,7 @@ STACK=0x300
fi
if [ "${MSP430_NAME}" = "msp430x2131" ] ; then
-ARCH=msp:21
+ARCH=MSP430x21
ROM_START=0xe000
ROM_SIZE=0x1fe0
RAM_START=0x0200
@@ -292,7 +292,7 @@ STACK=0x300
fi
if [ "${MSP430_NAME}" = "msp430x311" ] ; then
-ARCH=msp:31
+ARCH=MSP430x31
SCRIPT_NAME=elf32msp430_3
ROM_START=0xf800
ROM_SIZE=0x07e0
@@ -302,7 +302,7 @@ STACK=0x280
fi
if [ "${MSP430_NAME}" = "msp430x312" ] ; then
-ARCH=msp:31
+ARCH=MSP430x31
SCRIPT_NAME=elf32msp430_3
ROM_START=0xf000
ROM_SIZE=0x0fe0
@@ -312,7 +312,7 @@ STACK=0x300
fi
if [ "${MSP430_NAME}" = "msp430x313" ] ; then
-ARCH=msp:31
+ARCH=MSP430x31
SCRIPT_NAME=elf32msp430_3
ROM_START=0xe000
ROM_SIZE=0x1fe0
@@ -322,7 +322,7 @@ STACK=0x300
fi
if [ "${MSP430_NAME}" = "msp430x314" ] ; then
-ARCH=msp:31
+ARCH=MSP430x31
SCRIPT_NAME=elf32msp430_3
ROM_START=0xd000
ROM_SIZE=0x2fe0
@@ -332,7 +332,7 @@ STACK=0x400
fi
if [ "${MSP430_NAME}" = "msp430x315" ] ; then
-ARCH=msp:31
+ARCH=MSP430x31
SCRIPT_NAME=elf32msp430_3
ROM_START=0xc000
ROM_SIZE=0x3fe0
@@ -342,7 +342,7 @@ STACK=0x400
fi
if [ "${MSP430_NAME}" = "msp430x323" ] ; then
-ARCH=msp:32
+ARCH=MSP430x32
SCRIPT_NAME=elf32msp430_3
ROM_START=0xe000
ROM_SIZE=0x1fe0
@@ -352,7 +352,7 @@ STACK=0x300
fi
if [ "${MSP430_NAME}" = "msp430x325" ] ; then
-ARCH=msp:32
+ARCH=MSP430x32
SCRIPT_NAME=elf32msp430_3
ROM_START=0xc000
ROM_SIZE=0x3fe0
@@ -362,7 +362,7 @@ STACK=0x400
fi
if [ "${MSP430_NAME}" = "msp430x336" ] ; then
-ARCH=msp:33
+ARCH=MSP430x33
SCRIPT_NAME=elf32msp430_3
ROM_START=0xa000
ROM_SIZE=0x5fe0
@@ -372,7 +372,7 @@ STACK=0x600
fi
if [ "${MSP430_NAME}" = "msp430x337" ] ; then
-ARCH=msp:33
+ARCH=MSP430x33
SCRIPT_NAME=elf32msp430_3
ROM_START=0x8000
ROM_SIZE=0x7fe0
@@ -382,7 +382,7 @@ STACK=0x600
fi
if [ "${MSP430_NAME}" = "msp430x412" ] ; then
-ARCH=msp:41
+ARCH=MSP430x41
ROM_START=0xf000
ROM_SIZE=0x0fe0
RAM_START=0x0200
@@ -391,7 +391,7 @@ STACK=0x300
fi
if [ "${MSP430_NAME}" = "msp430x413" ] ; then
-ARCH=msp:41
+ARCH=MSP430x41
ROM_START=0xe000
ROM_SIZE=0x1fe0
RAM_START=0x0200
@@ -400,7 +400,7 @@ STACK=0x300
fi
if [ "${MSP430_NAME}" = "msp430x415" ] ; then
-ARCH=msp:41
+ARCH=MSP430x41
ROM_START=0xc000
ROM_SIZE=0x3fe0
RAM_START=0x0200
@@ -409,7 +409,7 @@ STACK=0x400
fi
if [ "${MSP430_NAME}" = "msp430x417" ] ; then
-ARCH=msp:41
+ARCH=MSP430x41
ROM_START=0x8000
ROM_SIZE=0x7fe0
RAM_START=0x0200
@@ -418,7 +418,7 @@ STACK=0x600
fi
if [ "${MSP430_NAME}" = "msp430x435" ] ; then
-ARCH=msp:43
+ARCH=MSP430x43
ROM_START=0xc000
ROM_SIZE=0x3fe0
RAM_START=0x0200
@@ -427,7 +427,7 @@ STACK=0x400
fi
if [ "${MSP430_NAME}" = "msp430x436" ] ; then
-ARCH=msp:43
+ARCH=MSP430x43
ROM_START=0xa000
ROM_SIZE=0x5fe0
RAM_START=0x0200
@@ -436,7 +436,7 @@ STACK=0x600
fi
if [ "${MSP430_NAME}" = "msp430x437" ] ; then
-ARCH=msp:43
+ARCH=MSP430x43
ROM_START=0x8000
ROM_SIZE=0x7fe0
RAM_START=0x0200
@@ -499,7 +499,7 @@ STACK=0x600
fi
if [ "${MSP430_NAME}" = "msp430xG437" ] ; then
-ARCH=msp:43
+ARCH=MSP430x43
ROM_START=0x8000
ROM_SIZE=0x7fe0
RAM_START=0x0200
@@ -508,7 +508,7 @@ STACK=0x600
fi
if [ "${MSP430_NAME}" = "msp430xG438" ] ; then
-ARCH=msp:43
+ARCH=MSP430x43
ROM_START=0x4000
ROM_SIZE=0xbef0
RAM_START=0x0200
@@ -517,7 +517,7 @@ STACK=0xa00
fi
if [ "${MSP430_NAME}" = "msp430xG439" ] ; then
-ARCH=msp:43
+ARCH=MSP430x43
ROM_START=0x1100
ROM_SIZE=0xeee0
RAM_START=0x0200
@@ -553,7 +553,7 @@ STACK=0x600
fi
if [ "${MSP430_NAME}" = "msp430X" ] ; then
-ARCH=msp:43
+ARCH=MSP430x43
ROM_START=0x02000
ROM_SIZE=0x0dfe0
RAM_START=0x10000