summaryrefslogtreecommitdiff
path: root/gas/expr.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2007-10-19 17:31:31 +0000
committerNick Clifton <nickc@redhat.com>2007-10-19 17:31:31 +0000
commit5d3a298a0cb12d298dd3c5c7ea04c8703cc8a8db (patch)
tree187feea427b7808dd570acdb721bdf8807a115c8 /gas/expr.c
parent1f959d8565d2e2ca6e30b1124ff4d080ec008191 (diff)
downloadbinutils-redhat-5d3a298a0cb12d298dd3c5c7ea04c8703cc8a8db.tar.gz
Add MN10300 linker relaxation support for symbol differences
Diffstat (limited to 'gas/expr.c')
-rw-r--r--gas/expr.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gas/expr.c b/gas/expr.c
index 4f4d380ff9..285b4381da 100644
--- a/gas/expr.c
+++ b/gas/expr.c
@@ -1738,6 +1738,9 @@ expr (int rankarg, /* Larger # is higher rank. */
&& right.X_op == O_symbol
&& resultP->X_op == O_symbol
&& retval == rightseg
+#ifdef md_allow_local_subtract
+ && md_allow_local_subtract (resultP, & right, rightseg)
+#endif
&& (SEG_NORMAL (rightseg)
|| right.X_add_symbol == resultP->X_add_symbol)
&& frag_offset_fixed_p (symbol_get_frag (resultP->X_add_symbol),