From: David McCullough Date: Mon, 3 Dec 2007 23:21:01 +0000 (+0000) Subject: This patch fixes two issues which are triggered when compiling for nios2: X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=6943182cb4dd22b0b3a5cede43b39c0886031370;p=elf2flt.git This patch fixes two issues which are triggered when compiling for nios2: * Typo in a goto label * Misplaced switch statement which probably is left from an older revision. - Atle Signed-off-by: Atle Nissestad --- diff --git a/elf2flt.c b/elf2flt.c index 1cc6c03..e79a336 100644 --- 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