aboutsummaryrefslogtreecommitdiff
path: root/gas/read.c
diff options
context:
space:
mode:
Diffstat (limited to 'gas/read.c')
-rw-r--r--gas/read.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/gas/read.c b/gas/read.c
index afe9023..2a5dabe 100644
--- a/gas/read.c
+++ b/gas/read.c
@@ -1499,13 +1499,19 @@ pseudo_set (symbolP)
}
else if (segment == pass1_section)
{
- symbolP->sy_forward = exp.X_add_symbol;
+ symbolP->sy_value.X_add_symbol = exp.X_add_symbol;
+ symbolP->sy_value.X_subtract_symbol = NULL;
+ symbolP->sy_value.X_add_number = 0;
+ symbolP->sy_value.X_seg = undefined_section;
as_bad ("Unknown expression");
know (need_pass_2 == 1);
}
else if (segment == undefined_section)
{
- symbolP->sy_forward = exp.X_add_symbol;
+ symbolP->sy_value.X_add_symbol = exp.X_add_symbol;
+ symbolP->sy_value.X_subtract_symbol = NULL;
+ symbolP->sy_value.X_add_number = 0;
+ symbolP->sy_value.X_seg = undefined_section;
}
else
{