forked from Imagelibrary/binutils-gdb
* 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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user