diff options
author | Alan Modra <amodra@gmail.com> | 2000-07-10 15:15:01 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2000-07-10 15:15:01 +0000 |
commit | 46b85d42877315522123a8ee1a929b7d7e89bc86 (patch) | |
tree | dd282b2c93e930f7fafbd9957dbb1599c9cd7e4a /gas/config/tc-hppa.c | |
parent | cce41527ca1386c9658507424cee111869170997 (diff) | |
download | gdb-46b85d42877315522123a8ee1a929b7d7e89bc86.zip gdb-46b85d42877315522123a8ee1a929b7d7e89bc86.tar.gz gdb-46b85d42877315522123a8ee1a929b7d7e89bc86.tar.bz2 |
More warning fixes, and a tweak in tc-hppa.c to check constant
branch offsets a little more thoroughly.
Diffstat (limited to 'gas/config/tc-hppa.c')
-rw-r--r-- | gas/config/tc-hppa.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gas/config/tc-hppa.c b/gas/config/tc-hppa.c index 6506ec4..313b229 100644 --- a/gas/config/tc-hppa.c +++ b/gas/config/tc-hppa.c @@ -4475,7 +4475,9 @@ md_apply_fix (fixP, valp) && fixP->fx_pcrel && !arg_reloc_stub_needed (symbol_arg_reloc_info (fixP->fx_addsy), hppa_fixP->fx_arg_reloc) - && (*valp + 262144) < 524288 + && ((*valp + 8192) < 16384 + || (fmt == 17 && (*valp + 262144) < 524288) + || (fmt == 22 && (*valp + 8388608) < 16777216)) && S_GET_SEGMENT (fixP->fx_addsy) == hppa_fixP->segment && !(fixP->fx_subsy && S_GET_SEGMENT (fixP->fx_subsy) != hppa_fixP->segment)) |