* expr.c (clean_up_expression): Don't cancel the subtraction of
undefined symbols. Fixes PR 2997. * read.c (s_data), config/obj-coffbfd.c (obj_coff_data): If -R, switch to text section rather than data section. Fixes PR 2971.
This commit is contained in:
parent
28403b8ee7
commit
ffffc8fb5c
4 changed files with 24 additions and 3 deletions
|
@ -681,6 +681,7 @@ clean_up_expression (expressionP)
|
|||
&& expressionP->X_add_symbol
|
||||
&& (expressionP->X_subtract_symbol->sy_frag
|
||||
== expressionP->X_add_symbol->sy_frag)
|
||||
&& SEG_NORMAL (S_GET_SEGMENT (expressionP->X_add_symbol))
|
||||
&& (S_GET_VALUE (expressionP->X_subtract_symbol)
|
||||
== S_GET_VALUE (expressionP->X_add_symbol))))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue