mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 01:07:52 +00:00
* expr.c (expr): Don't reduce the difference of two symbols in the
same frag if the symbols are not in normal sections.
This commit is contained in:
@@ -991,7 +991,9 @@ expr (rank, resultP)
|
||||
&& right.X_op == O_symbol
|
||||
&& resultP->X_op == O_symbol
|
||||
&& (right.X_add_symbol->sy_frag
|
||||
== resultP->X_add_symbol->sy_frag))
|
||||
== resultP->X_add_symbol->sy_frag)
|
||||
&& SEG_NORMAL (S_GET_SEGMENT (right.X_add_symbol)))
|
||||
|
||||
{
|
||||
resultP->X_add_number += right.X_add_number;
|
||||
resultP->X_add_number += (S_GET_VALUE (resultP->X_add_symbol)
|
||||
|
||||
Reference in New Issue
Block a user