From: Nick Clifton Date: Fri, 1 Dec 2000 19:06:15 +0000 (+0000) Subject: When calculating offsets, don't accept as constant the difference between the X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3dacdf2eb107a25a84c509c1d06b882f3f1248e5;p=binutils-gdb.git When calculating offsets, don't accept as constant the difference between the addresses of symbols in two different sections. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 8dc67685f96..caed5bc850a 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,9 +1,15 @@ +2000-12-01 Chris Demetriou + + * config/tc-mips.c (mips_ip): When calculating offsets, + don't accept as constant the difference between the + addresses of symbols in two different sections. + 2000-12-01 Joel Sherrill - * configure.in (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*): - New targets. - (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets. - (sparc*-*-rtems*): Switched from a.out to ELF. + * configure.in (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*): + New targets. + (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets. + (sparc*-*-rtems*): Switched from a.out to ELF. * configure: Regenerate. * config.in: Regenerate. * Makefile.in: Regenerate. diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c index 19490a86b40..ef6304dbb8e 100644 --- a/gas/config/tc-mips.c +++ b/gas/config/tc-mips.c @@ -7873,8 +7873,8 @@ mips_ip (str, ip) || offset_expr.X_add_number < -0x8000) && (mips_pic != EMBEDDED_PIC || offset_expr.X_op != O_subtract - || (S_GET_SEGMENT (offset_expr.X_op_symbol) - != now_seg))) + || (S_GET_SEGMENT (offset_expr.X_add_symbol) + != S_GET_SEGMENT (offset_expr.X_op_symbol)))) break; if (c == 'h' || c == 'H')