diff options
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 4 | ||||
-rw-r--r-- | gas/config/tc-arm.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index bb8a91e..b360a4b 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,7 @@ +2008-03-07 Paul Brook <paul@codesourcery.com> + + * config/tc-arm.c (md_apply_fix): Use correct offset range. + 2008-03-07 Alan Modra <amodra@bigpond.net.au> * config/tc-ppc.c (ppc_setup_opcodes): Tidy. Add code to test diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c index 48fb152..161b644 100644 --- a/gas/config/tc-arm.c +++ b/gas/config/tc-arm.c @@ -18804,7 +18804,7 @@ md_apply_fix (fixS * fixP, /* REL format relocations are limited to a 16-bit addend. */ if (!fixP->fx_done) { - if (value < -0x1000 || value > 0xffff) + if (value < -0x8000 || value > 0x7fff) as_bad_where (fixP->fx_file, fixP->fx_line, _("offset out of range")); } |