From 114241553a379c49415048cb5a16c4092ac0f5c1 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Sun, 19 Mar 2000 22:09:23 +0000 Subject: [PATCH] fix bug detecting pc-rel overflow --- gas/ChangeLog | 5 +++++ gas/config/tc-arm.c | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 02bcb959e95..6ba9cfd82c8 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2000-03-19 Nick Clifton + + * config/tc-arm.c (md_apply_fix3): Fix bug detectng overflow of pc + relative branches. + 2000-03-17 Thomas de Lellis * config/tc-arm.c (do_t_adr): Flag "adr Rd,label" diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c index 58dd3cfec38..04d8b456148 100644 --- a/gas/config/tc-arm.c +++ b/gas/config/tc-arm.c @@ -5608,8 +5608,7 @@ md_apply_fix3 (fixP, val, seg) value += SEXT24 (newval); if ((value & 0xff000000UL) != 0 - && (fixP->fx_done == 0 - || ((value & 0xff000000UL) != 0xff000000UL))) + && ((value & 0xff000000UL) != 0xff000000UL)) as_bad_where (fixP->fx_file, fixP->fx_line, _("out of range branch")); -- 2.30.2