mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-02 11:01:35 +08:00
* 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:
@ -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))))
|
||||
{
|
||||
|
Reference in New Issue
Block a user