OSDN Git Service

This patch fixes two issues which are triggered when compiling for nios2:
authorDavid McCullough <davidm@snapgear.com>
Mon, 3 Dec 2007 23:21:01 +0000 (23:21 +0000)
committerDavid McCullough <davidm@snapgear.com>
Mon, 3 Dec 2007 23:21:01 +0000 (23:21 +0000)
* Typo in a goto label
* Misplaced switch statement which probably is left from an older revision.

 - Atle

Signed-off-by: Atle Nissestad <atle@nissestad.no>
elf2flt.c

index 1cc6c03..e79a336 100644 (file)
--- a/elf2flt.c
+++ b/elf2flt.c
@@ -736,7 +736,7 @@ dump_symbols(symbols, number_of_symbols);
                                           give an error by default, and
                                           require `safe' relocations to be
                                           enumberated explicitly?).  */
-                                       goto good_32bit_resolve_reloc;
+                                       goto good_32bit_resolved_reloc;
 #endif
                                good_32bit_resolved_reloc:
                                        if (bfd_big_endian (abs_bfd))
@@ -988,8 +988,6 @@ dump_symbols(symbols, number_of_symbols);
 #ifdef TARGET_nios2
 #define  htoniosl(x)   (x)
 #define  niostohl(x)   (x)
-                       switch ((*p)->howto->type) 
-                       {
                                case R_NIOS2_BFD_RELOC_32:
                                        relocation_needed = 1;
                                        pflags = (FLAT_NIOS2_R_32 << 28);
@@ -1142,7 +1140,6 @@ NIOS2_RELOC_ERR:
                                        printf("Err: unexpected reloc type %s(%d)\n", q->howto->name, q->howto->type);
                                        bad_relocs++;
                                        continue;
-                       }
 #endif /* TARGET_nios2 */
 
 #ifdef TARGET_sparc