* 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:
Ian Lance Taylor 1993-07-19 18:46:39 +00:00
parent 28403b8ee7
commit ffffc8fb5c
4 changed files with 24 additions and 3 deletions

View file

@ -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))))
{