aboutsummaryrefslogtreecommitdiff
path: root/gas/symbols.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2009-10-05 21:58:19 +0000
committerAlan Modra <amodra@gmail.com>2009-10-05 21:58:19 +0000
commitd96eea71e0c43152999edfaa77d4f08b95509f93 (patch)
tree753e885d49c80d0114fbbd01346384bf4089e9d5 /gas/symbols.c
parentc188d0bb5971f424ad1d52c480fb2728120d9eb4 (diff)
downloadgdb-d96eea71e0c43152999edfaa77d4f08b95509f93.zip
gdb-d96eea71e0c43152999edfaa77d4f08b95509f93.tar.gz
gdb-d96eea71e0c43152999edfaa77d4f08b95509f93.tar.bz2
PR gas/10704
* symbols.c (snapshot_symbol): Revert 2006-01-09 patch for PR2117.
Diffstat (limited to 'gas/symbols.c')
-rw-r--r--gas/symbols.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/gas/symbols.c b/gas/symbols.c
index 304a1ee..4cfa85b 100644
--- a/gas/symbols.c
+++ b/gas/symbols.c
@@ -1514,10 +1514,7 @@ snapshot_symbol (symbolS **symbolPP, valueT *valueP, segT *segP, fragS **fragPP)
}
}
- /* Never change a defined symbol. */
- if (symbolP->bsym->section == undefined_section
- || symbolP->bsym->section == expr_section)
- *symbolPP = symbolP;
+ *symbolPP = symbolP;
*valueP = expr.X_add_number;
*segP = symbolP->bsym->section;
*fragPP = symbolP->sy_frag;