From: Alan Modra Date: Wed, 6 Mar 2002 04:59:36 +0000 (+0000) Subject: * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=69f5df607a3f6c54bd22f18e91159cf8edaf9de0;p=pf3gnuchains%2Fpf3gnuchains3x.git * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte relocs except when BFD64. * write.c (number_to_chars_bigendian): Don't abort when N is larger than sizeof (VAL). (number_to_chars_littleendian): Likewise. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index fd09e98da0..27dc05a4a9 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,12 @@ +2002-03-06 Alan Modra + + * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte + relocs except when BFD64. + + * write.c (number_to_chars_bigendian): Don't abort when N is + larger than sizeof (VAL). + (number_to_chars_littleendian): Likewise. + 2002-03-05 John David Anglin * config/tc-hppa.c (md_apply_fix3): Add cast. diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index 2b82037a8b..0263bbc332 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -4882,7 +4882,9 @@ tc_gen_reloc (section, fixp) case 1: code = BFD_RELOC_8; break; case 2: code = BFD_RELOC_16; break; case 4: code = BFD_RELOC_32; break; +#ifdef BFD64 case 8: code = BFD_RELOC_64; break; +#endif } } break; diff --git a/gas/write.c b/gas/write.c index 9b20f90919..f4dc2ae816 100644 --- a/gas/write.c +++ b/gas/write.c @@ -2923,7 +2923,7 @@ number_to_chars_bigendian (buf, val, n) valueT val; int n; { - if ((size_t) n > sizeof (val) || n <= 0) + if (n <= 0) abort (); while (n--) { @@ -2938,7 +2938,7 @@ number_to_chars_littleendian (buf, val, n) valueT val; int n; { - if ((size_t) n > sizeof (val) || n <= 0) + if (n <= 0) abort (); while (n--) {