* 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

@@ -2047,7 +2047,10 @@ obj_coff_text ()
static void
obj_coff_data ()
{
change_to_section (".data", 5, get_absolute_expression ());
if (flagseen['R'])
change_to_section (".text", 5, get_absolute_expression () + 1000);
else
change_to_section (".data", 5, get_absolute_expression ());
}
static void