diff options
author | Alan Modra <amodra@gmail.com> | 2002-03-06 04:59:36 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2002-03-06 04:59:36 +0000 |
commit | 937149dd3c9c927b00431319349e6ef8a3fd3d34 (patch) | |
tree | b61d315cb83255b775737e95af949c95a49ac365 /gas/write.c | |
parent | f779ca99068f2b27d73669b006e9f505a2e7e202 (diff) | |
download | gdb-937149dd3c9c927b00431319349e6ef8a3fd3d34.zip gdb-937149dd3c9c927b00431319349e6ef8a3fd3d34.tar.gz gdb-937149dd3c9c927b00431319349e6ef8a3fd3d34.tar.bz2 |
* 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.
Diffstat (limited to 'gas/write.c')
-rw-r--r-- | gas/write.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gas/write.c b/gas/write.c index 9b20f90..f4dc2ae 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--) { |