* 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.
This commit is contained in:
Alan Modra 2002-03-06 04:59:36 +00:00
parent f779ca9906
commit 937149dd3c
3 changed files with 13 additions and 2 deletions

View File

@ -1,3 +1,12 @@
2002-03-06 Alan Modra <amodra@bigpond.net.au>
* 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 <dave@hiauly1.hia.nrc.ca>
* config/tc-hppa.c (md_apply_fix3): Add cast.

View File

@ -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;

View File

@ -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--)
{