hi mat and gunther,

i have what may be a complete supplemental patch for at least the binutils tree. i'll check the gcc and libc bits tomorrow morning (eastern us time) and pass along anything else that i did to get this far.

please let me know if i missed something in this tree and i'll fix the patch.

more later,

steve

/****************** binutils-2.17.supplemental.patch *********************/
diff -urN -x '*.x*' -x 'Makefile*' -x 'doc*' -x 'config*' -x '*.lo' -x '*.o' -x '*.a' msp430base_toolchain/binutils-2.17/ld/emsp430x2416.c msp430_toolchain/binutils-2.17/ld/emsp430x2416.c
--- msp430base_toolchain/binutils-2.17/ld/emsp430x2416.c        2008-03-06 
15:15:00.070791680 -0500
+++ msp430_toolchain/binutils-2.17/ld/emsp430x2416.c    2008-03-05 
15:06:02.703942486 -0500
@@ -41,7 +41,7 @@
 gldmsp430x2416_before_parse (void)
 {
 #ifndef TARGET_                        /* I.e., if not generic.  */
-  ldfile_set_output_arch ("", bfd_arch_unknown);
+  ldfile_set_output_arch ("msp:241", bfd_arch_unknown);
 #endif /* not TARGET_ */
 }

@@ -76,7 +76,7 @@
   before_allocation_default,
   gldmsp430x2416_get_script,
   "msp430x2416",
-  "",
+  "elf32-msp430",
   finish_default,
   NULL,
   NULL,
diff -urN -x '*.x*' -x 'Makefile*' -x 'doc*' -x 'config*' -x '*.lo' -x '*.o' -x '*.a' msp430base_toolchain/binutils-2.17/ld/emsp430x2417.c msp430_toolchain/binutils-2.17/ld/emsp430x2417.c
--- msp430base_toolchain/binutils-2.17/ld/emsp430x2417.c        2008-03-06 
15:15:00.474791754 -0500
+++ msp430_toolchain/binutils-2.17/ld/emsp430x2417.c    2008-03-05 
15:06:03.036001969 -0500
@@ -41,7 +41,7 @@
 gldmsp430x2417_before_parse (void)
 {
 #ifndef TARGET_                        /* I.e., if not generic.  */
-  ldfile_set_output_arch ("", bfd_arch_unknown);
+  ldfile_set_output_arch ("msp:241", bfd_arch_unknown);
 #endif /* not TARGET_ */
 }

@@ -76,7 +76,7 @@
   before_allocation_default,
   gldmsp430x2417_get_script,
   "msp430x2417",
-  "",
+  "elf32-msp430",
   finish_default,
   NULL,
   NULL,
diff -urN -x '*.x*' -x 'Makefile*' -x 'doc*' -x 'config*' -x '*.lo' -x '*.o' -x '*.a' msp430base_toolchain/binutils-2.17/ld/emsp430x2418.c msp430_toolchain/binutils-2.17/ld/emsp430x2418.c
--- msp430base_toolchain/binutils-2.17/ld/emsp430x2418.c        2008-03-06 
15:15:00.806757893 -0500
+++ msp430_toolchain/binutils-2.17/ld/emsp430x2418.c    2008-03-05 
15:06:03.364058068 -0500
@@ -41,7 +41,7 @@
 gldmsp430x2418_before_parse (void)
 {
 #ifndef TARGET_                        /* I.e., if not generic.  */
-  ldfile_set_output_arch ("", bfd_arch_unknown);
+  ldfile_set_output_arch ("msp:241", bfd_arch_unknown);
 #endif /* not TARGET_ */
 }

@@ -76,7 +76,7 @@
   before_allocation_default,
   gldmsp430x2418_get_script,
   "msp430x2418",
-  "",
+  "elf32-msp430",
   finish_default,
   NULL,
   NULL,
diff -urN -x '*.x*' -x 'Makefile*' -x 'doc*' -x 'config*' -x '*.lo' -x '*.o' -x '*.a' msp430base_toolchain/binutils-2.17/ld/emsp430x2419.c msp430_toolchain/binutils-2.17/ld/emsp430x2419.c
--- msp430base_toolchain/binutils-2.17/ld/emsp430x2419.c        2008-03-06 
15:15:01.126717891 -0500
+++ msp430_toolchain/binutils-2.17/ld/emsp430x2419.c    2008-03-05 
15:06:03.688106360 -0500
@@ -41,7 +41,7 @@
 gldmsp430x2419_before_parse (void)
 {
 #ifndef TARGET_                        /* I.e., if not generic.  */
-  ldfile_set_output_arch ("", bfd_arch_unknown);
+  ldfile_set_output_arch ("msp:241", bfd_arch_unknown);
 #endif /* not TARGET_ */
 }

@@ -76,7 +76,7 @@
   before_allocation_default,
   gldmsp430x2419_get_script,
   "msp430x2419",
-  "",
+  "elf32-msp430",
   finish_default,
   NULL,
   NULL,
diff -urN -x '*.x*' -x 'Makefile*' -x 'doc*' -x 'config*' -x '*.lo' -x '*.o' -x '*.a' msp430base_toolchain/binutils-2.17/ld/emsp430x2616.c msp430_toolchain/binutils-2.17/ld/emsp430x2616.c
--- msp430base_toolchain/binutils-2.17/ld/emsp430x2616.c        2008-03-06 
15:15:01.510672041 -0500
+++ msp430_toolchain/binutils-2.17/ld/emsp430x2616.c    2008-03-05 
15:06:04.016170236 -0500
@@ -41,7 +41,7 @@
 gldmsp430x2616_before_parse (void)
 {
 #ifndef TARGET_                        /* I.e., if not generic.  */
-  ldfile_set_output_arch ("", bfd_arch_unknown);
+  ldfile_set_output_arch ("msp:26", bfd_arch_unknown);
 #endif /* not TARGET_ */
 }

@@ -76,7 +76,7 @@
   before_allocation_default,
   gldmsp430x2616_get_script,
   "msp430x2616",
-  "",
+  "elf32-msp430",
   finish_default,
   NULL,
   NULL,
diff -urN -x '*.x*' -x 'Makefile*' -x 'doc*' -x 'config*' -x '*.lo' -x '*.o' -x '*.a' msp430base_toolchain/binutils-2.17/ld/emsp430x2617.c msp430_toolchain/binutils-2.17/ld/emsp430x2617.c
--- msp430base_toolchain/binutils-2.17/ld/emsp430x2617.c        2008-03-06 
15:15:01.834647360 -0500
+++ msp430_toolchain/binutils-2.17/ld/emsp430x2617.c    2008-03-05 
15:06:04.344222241 -0500
@@ -41,7 +41,7 @@
 gldmsp430x2617_before_parse (void)
 {
 #ifndef TARGET_                        /* I.e., if not generic.  */
-  ldfile_set_output_arch ("", bfd_arch_unknown);
+  ldfile_set_output_arch ("msp:26", bfd_arch_unknown);
 #endif /* not TARGET_ */
 }

@@ -76,7 +76,7 @@
   before_allocation_default,
   gldmsp430x2617_get_script,
   "msp430x2617",
-  "",
+  "elf32-msp430",
   finish_default,
   NULL,
   NULL,
diff -urN -x '*.x*' -x 'Makefile*' -x 'doc*' -x 'config*' -x '*.lo' -x '*.o' -x '*.a' msp430base_toolchain/binutils-2.17/ld/emsp430x2618.c msp430_toolchain/binutils-2.17/ld/emsp430x2618.c
--- msp430base_toolchain/binutils-2.17/ld/emsp430x2618.c        2008-03-06 
15:15:02.170614819 -0500
+++ msp430_toolchain/binutils-2.17/ld/emsp430x2618.c    2008-03-05 
15:06:04.668266668 -0500
@@ -41,7 +41,7 @@
 gldmsp430x2618_before_parse (void)
 {
 #ifndef TARGET_                        /* I.e., if not generic.  */
-  ldfile_set_output_arch ("", bfd_arch_unknown);
+  ldfile_set_output_arch ("msp:26", bfd_arch_unknown);
 #endif /* not TARGET_ */
 }

@@ -76,7 +76,7 @@
   before_allocation_default,
   gldmsp430x2618_get_script,
   "msp430x2618",
-  "",
+  "elf32-msp430",
   finish_default,
   NULL,
   NULL,
diff -urN -x '*.x*' -x 'Makefile*' -x 'doc*' -x 'config*' -x '*.lo' -x '*.o' -x '*.a' msp430base_toolchain/binutils-2.17/ld/emsp430x2619.c msp430_toolchain/binutils-2.17/ld/emsp430x2619.c
--- msp430base_toolchain/binutils-2.17/ld/emsp430x2619.c        2008-03-06 
15:15:02.494577721 -0500
+++ msp430_toolchain/binutils-2.17/ld/emsp430x2619.c    2008-03-05 
15:06:05.020371803 -0500
@@ -41,7 +41,7 @@
 gldmsp430x2619_before_parse (void)
 {
 #ifndef TARGET_                        /* I.e., if not generic.  */
-  ldfile_set_output_arch ("", bfd_arch_unknown);
+  ldfile_set_output_arch ("msp:26", bfd_arch_unknown);
 #endif /* not TARGET_ */
 }

@@ -76,7 +76,7 @@
   before_allocation_default,
   gldmsp430x2619_get_script,
   "msp430x2619",
-  "",
+  "elf32-msp430",
   finish_default,
   NULL,
   NULL,
diff -urN -x '*.x*' -x 'Makefile*' -x 'doc*' -x 'config*' -x '*.lo' -x '*.o' -x '*.a' msp430base_toolchain/binutils-2.17/ld/emulparams/msp430all.sh msp430_toolchain/binutils-2.17/ld/emulparams/msp430all.sh --- msp430base_toolchain/binutils-2.17/ld/emulparams/msp430all.sh 2008-03-06 14:55:41.065704387 -0500 +++ msp430_toolchain/binutils-2.17/ld/emulparams/msp430all.sh 2008-03-05 15:04:05.823352505 -0500
@@ -954,7 +954,7 @@
 STACK=0xa00
 fi

-if [ "${MSP430_NAME}" = "msp430xF2416" ] ; then
+if [ "${MSP430_NAME}" = "msp430x2416" ] ; then
 ARCH=msp:241
 MACHINE=
 SCRIPT_NAME=elf32msp430
@@ -973,7 +973,7 @@
 STACK=0x2100
 fi

-if [ "${MSP430_NAME}" = "msp430xF2417" ] ; then
+if [ "${MSP430_NAME}" = "msp430x2417" ] ; then
 ARCH=msp:241
 MACHINE=
 SCRIPT_NAME=elf32msp430
@@ -992,7 +992,7 @@
 STACK=0x3100
 fi

-if [ "${MSP430_NAME}" = "msp430xF2418" ] ; then
+if [ "${MSP430_NAME}" = "msp430x2418" ] ; then
 ARCH=msp:241
 MACHINE=
 SCRIPT_NAME=elf32msp430
@@ -1011,7 +1011,7 @@
 STACK=0x3100
 fi

-if [ "${MSP430_NAME}" = "msp430xF2419" ] ; then
+if [ "${MSP430_NAME}" = "msp430x2419" ] ; then
 ARCH=msp:241
 MACHINE=
 SCRIPT_NAME=elf32msp430
@@ -1030,7 +1030,7 @@
 STACK=0x2100
 fi

-if [ "${MSP430_NAME}" = "msp430xF2616" ] ; then
+if [ "${MSP430_NAME}" = "msp430x2616" ] ; then
 ARCH=msp:26
 MACHINE=
 SCRIPT_NAME=elf32msp430
@@ -1049,7 +1049,7 @@
 STACK=0x2100
 fi

-if [ "${MSP430_NAME}" = "msp430xF2617" ] ; then
+if [ "${MSP430_NAME}" = "msp430x2617" ] ; then
 ARCH=msp:26
 MACHINE=
 SCRIPT_NAME=elf32msp430
@@ -1068,7 +1068,7 @@
 STACK=0x3100
 fi

-if [ "${MSP430_NAME}" = "msp430xF2618" ] ; then
+if [ "${MSP430_NAME}" = "msp430x2618" ] ; then
 ARCH=msp:26
 MACHINE=
 SCRIPT_NAME=elf32msp430
@@ -1087,7 +1087,7 @@
 STACK=0x3100
 fi

-if [ "${MSP430_NAME}" = "msp430xF2619" ] ; then
+if [ "${MSP430_NAME}" = "msp430x2619" ] ; then
 ARCH=msp:26
 MACHINE=
 SCRIPT_NAME=elf32msp430

Reply via email to