mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-28 15:18:37 +08:00
When calculating offsets, don't accept as constant the difference between the
addresses of symbols in two different sections.
This commit is contained in:
@ -1,9 +1,15 @@
|
|||||||
|
2000-12-01 Chris Demetriou <cgd@sibyte.com>
|
||||||
|
|
||||||
|
* 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 <joel@OARcorp.com>
|
2000-12-01 Joel Sherrill <joel@OARcorp.com>
|
||||||
|
|
||||||
* configure.in (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
|
* configure.in (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
|
||||||
New targets.
|
New targets.
|
||||||
(sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
|
(sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
|
||||||
(sparc*-*-rtems*): Switched from a.out to ELF.
|
(sparc*-*-rtems*): Switched from a.out to ELF.
|
||||||
* configure: Regenerate.
|
* configure: Regenerate.
|
||||||
* config.in: Regenerate.
|
* config.in: Regenerate.
|
||||||
* Makefile.in: Regenerate.
|
* Makefile.in: Regenerate.
|
||||||
|
@ -7873,8 +7873,8 @@ mips_ip (str, ip)
|
|||||||
|| offset_expr.X_add_number < -0x8000)
|
|| offset_expr.X_add_number < -0x8000)
|
||||||
&& (mips_pic != EMBEDDED_PIC
|
&& (mips_pic != EMBEDDED_PIC
|
||||||
|| offset_expr.X_op != O_subtract
|
|| offset_expr.X_op != O_subtract
|
||||||
|| (S_GET_SEGMENT (offset_expr.X_op_symbol)
|
|| (S_GET_SEGMENT (offset_expr.X_add_symbol)
|
||||||
!= now_seg)))
|
!= S_GET_SEGMENT (offset_expr.X_op_symbol))))
|
||||||
break;
|
break;
|
||||||
|
|
||||||
if (c == 'h' || c == 'H')
|
if (c == 'h' || c == 'H')
|
||||||
|
Reference in New Issue
Block a user