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 | |
parent | f779ca99068f2b27d73669b006e9f505a2e7e202 (diff) | |
download | fsf-binutils-gdb-937149dd3c9c927b00431319349e6ef8a3fd3d34.zip fsf-binutils-gdb-937149dd3c9c927b00431319349e6ef8a3fd3d34.tar.gz fsf-binutils-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.
-rw-r--r-- | gas/ChangeLog | 9 | ||||
-rw-r--r-- | gas/config/tc-i386.c | 2 | ||||
-rw-r--r-- | gas/write.c | 4 |
3 files changed, 13 insertions, 2 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index fd09e98..27dc05a 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -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. diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index 2b82037..0263bbc 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 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--) { |