diff options
author | Jeff Law <law@redhat.com> | 1994-09-14 03:53:14 +0000 |
---|---|---|
committer | Jeff Law <law@redhat.com> | 1994-09-14 03:53:14 +0000 |
commit | fcacfef6ae9044437f58f7b74af1825ab64b72fd (patch) | |
tree | fc1fa6982d4ae3b6c82a9444eaece34e086f5b0c /gas/expr.c | |
parent | * objcopy.c (copy_main): Initialize input_filename and (diff) | |
download | binutils-gdb-fcacfef6ae9044437f58f7b74af1825ab64b72fd.tar.gz binutils-gdb-fcacfef6ae9044437f58f7b74af1825ab64b72fd.tar.bz2 binutils-gdb-fcacfef6ae9044437f58f7b74af1825ab64b72fd.zip |
* expr.c (expr): Don't reduce the difference of two symbols in the
same frag if the symbols are not in normal sections.
Diffstat (limited to 'gas/expr.c')
-rw-r--r-- | gas/expr.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gas/expr.c b/gas/expr.c index d431d3d925a..88da7e9d740 100644 --- a/gas/expr.c +++ b/gas/expr.c @@ -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) |